Improve threading of comparisons over select instructions (spotted by my
authorDuncan Sands <baldrick@free.fr>
Thu, 3 Feb 2011 09:37:39 +0000 (09:37 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 3 Feb 2011 09:37:39 +0000 (09:37 +0000)
commit50ca4d37f7f3b460c6441eb5ad14625a7d86b5d9
tree240e5626072424c8c5d65d781f4ce7420d42a605
parentee64684710486bf8a0cd156d0516e0a7caecfb0b
Improve threading of comparisons over select instructions (spotted by my
auto-simplifier).  This has a big impact on Ada code, but not much else.
Unfortunately the impact is mostly negative!  This is due to PR9004 (aka
SCCP failing to resolve conditional branch conditions in the destination
blocks of the branch), in which simple correlated expressions are not
resolved but complicated ones are, so simplifying has a bad effect!

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