diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-01-25 21:28:05 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-01-25 21:28:05 +0000 |
commit | 70c8fe5e4e3dfdc2f676b71ba6241bd0891667b2 (patch) | |
tree | f6120bab970857659ebc761a299ab72ad1f10696 /llvm/lib | |
parent | 822742fef9f8a133ddac49745025402e5c018323 (diff) | |
download | bcm5719-llvm-70c8fe5e4e3dfdc2f676b71ba6241bd0891667b2.tar.gz bcm5719-llvm-70c8fe5e4e3dfdc2f676b71ba6241bd0891667b2.zip |
Remove check for an impossible condition: the condition of the while loop has
already checked that TmpBB->getSinglePredecessor() is non-null.
llvm-svn: 94451
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/GVN.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp index b29fe74b1ec..292a4b311dd 100644 --- a/llvm/lib/Transforms/Scalar/GVN.cpp +++ b/llvm/lib/Transforms/Scalar/GVN.cpp @@ -1522,8 +1522,6 @@ bool GVN::processNonLocalLoad(LoadInst *LI, while (TmpBB->getSinglePredecessor()) { isSinglePred = true; TmpBB = TmpBB->getSinglePredecessor(); - if (!TmpBB) // If haven't found any, bail now. - return false; if (TmpBB == LoadBB) // Infinite (unreachable) loop. return false; if (Blockers.count(TmpBB)) |