summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-08-19 19:03:07 +0000
committerSanjay Patel <spatel@rotateright.com>2016-08-19 19:03:07 +0000
commit7a104615c527e9d962027988b89e2fc08fd0e257 (patch)
treef4a67e9df68aa22aa46efbcdfc88954099ce1a56 /llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
parent46d396041bb2d8cdce8ad3a8cca074a59c3716b0 (diff)
downloadbcm5719-llvm-7a104615c527e9d962027988b89e2fc08fd0e257.tar.gz
bcm5719-llvm-7a104615c527e9d962027988b89e2fc08fd0e257.zip
[InstCombine] remove an icmp fold that is already handled by InstSimplify
Specifically, this is done near the end of "SimplifyICmpInst" using computeKnownBits() as the broader solution. There are even vector tests (yay!) for this in test/Transforms/InstSimplify/compare.ll. I considered putting an assert here instead of just deleting, but then we could assert every possible fold in InstSimplify in InstCombine, so...less is more? llvm-svn: 279300
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud