[VectorCombine] refactor cost calcs to reduce duplication; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 21 Feb 2020 19:25:39 +0000 (14:25 -0500)
committerSanjay Patel <spatel@rotateright.com>
Fri, 21 Feb 2020 20:12:00 +0000 (15:12 -0500)
commit34e3485560cbe8b0e843a1a9ef0cf796e6a4e237
treec5088bcbce1a5e0cbedd57326452f1bbfbf82475
parente2ed1d14d6c2d11d1a5df23bd679bcb7e6cbf433
[VectorCombine] refactor cost calcs to reduce duplication; NFC

More cleanup is possible now, but we probably need to
resolve the TODO about the existing difference between
compares and binops.
llvm/lib/Transforms/Vectorize/VectorCombine.cpp