]> granicus.if.org Git - llvm/commit
Teach instruction simplify to use constant ranges to solve problems of the form
authorNick Lewycky <nicholas@mxc.ca>
Fri, 4 Mar 2011 07:00:57 +0000 (07:00 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 4 Mar 2011 07:00:57 +0000 (07:00 +0000)
commit3a73e343d02ba3a00adf03311183cc0ccc960978
tree6d8c4fec0c7046d99fd4564da488aa45c29d5af1
parent86d822df6d9a484b3672b2a909641262663a45dc
Teach instruction simplify to use constant ranges to solve problems of the form
"icmp pred %X, CI" and a number of examples where "%X = binop %Y, CI2".

Some of these cases (div and rem) used to make it through opt -O2, but the
others are probably now making code elsewhere redundant (probably instcombine).

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