Use LVI to eliminate conditional branches where we've tested a related condition...
authorOwen Anderson <resistor@mac.com>
Fri, 27 Aug 2010 17:12:29 +0000 (17:12 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 27 Aug 2010 17:12:29 +0000 (17:12 +0000)
commit660cab32fe5105bcaa17daa4704c24065ac0a7e6
tree0fb70ca06ea4d8d01b26f861c227238e53ebbd64
parent67ef74e0e5863e32e4d581d5e197bf00cccddd01
Use LVI to eliminate conditional branches where we've tested a related condition previously.  Update tests for this change.
This fixes PR5652.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112270 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LazyValueInfo.cpp
lib/Transforms/Scalar/JumpThreading.cpp
test/Transforms/JumpThreading/basic.ll
test/Transforms/JumpThreading/lvi-load.ll