InstSimplify: Move a transform from InstCombine to InstSimplify
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 28 Aug 2014 03:34:28 +0000 (03:34 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 28 Aug 2014 03:34:28 +0000 (03:34 +0000)
commitb11fff1d8a909808c4b9b45f192dab20bb7f682c
treeba29aabf45d47214c1101d89bd3fdafbc2c2ba46
parent4a76317ebb880d4ea3d5fc9e80e9c02a2f69cee3
InstSimplify: Move a transform from InstCombine to InstSimplify

Several combines involving icmp (shl C2, %X) C1 can be simplified
without introducing any new instructions.  Move them to InstSimplify;
while we are at it, make them more powerful.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216642 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/icmp.ll
test/Transforms/InstSimplify/compare.ll