Improve the bail-out predicate to really only kick in when phi
authorChris Lattner <sabre@nondot.org>
Tue, 26 Apr 2011 17:41:02 +0000 (17:41 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 26 Apr 2011 17:41:02 +0000 (17:41 +0000)
commit9750acc079409e52f6563636a112a9de50749b30
treec4de4b907fe534490798165a404b1318159760e6
parenta61e73bda5125c28e48b52e573d115370838596b
Improve the bail-out predicate to really only kick in when phi
translation fails.  We were bailing out in some cases that would
cause us to miss GVN'ing some non-local cases away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130206 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp
test/Transforms/GVN/rle.ll
test/Transforms/SimplifyCFG/2006-08-03-Crash.ll