summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-07-24 21:31:21 +0000
committerCraig Topper <craig.topper@intel.com>2018-07-24 21:31:21 +0000
commit5ddc0a2b149daf41a4df3d215555c96343326cf5 (patch)
treecb160ff0196511f5e702f587352411e775e9a612 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
parenta3fd11621951a8b1bf6a2ee2897228bcf05f1f51 (diff)
downloadbcm5719-llvm-5ddc0a2b149daf41a4df3d215555c96343326cf5.tar.gz
bcm5719-llvm-5ddc0a2b149daf41a4df3d215555c96343326cf5.zip
[X86] When expanding a multiply by a negative of one less than a power of 2, like 31, don't generate a negate of a subtract that we'll never optimize.
We generated a subtract for the power of 2 minus one then negated the result. The negate can be optimized away by swapping the subtract operands, but DAG combine doesn't know how to do that and we don't add any of the new nodes to the worklist anyway. This patch makes use explicitly emit the swapped subtract. llvm-svn: 337858
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud