use getPredicateOnEdge to fold comparisons through PHI nodes,
authorChris Lattner <sabre@nondot.org>
Thu, 12 Nov 2009 05:24:05 +0000 (05:24 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 12 Nov 2009 05:24:05 +0000 (05:24 +0000)
commit66c04c48debfd4357beaf9310346b2b24046b685
tree21ae6fe818b545a074550b4d53b7bc1e221bf3ac
parentf496e79f44f13ac80564f5f8e69aa648033e7889
use getPredicateOnEdge to fold comparisons through PHI nodes,
which implements GCC PR18046.  This also gets us 360 more
jump threads on 176.gcc.

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