aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-01-25 21:28:05 +0000
committerBob Wilson <bob.wilson@apple.com>2010-01-25 21:28:05 +0000
commit0988639963747a29fccf1273bbec996b4bac89a8 (patch)
tree0817ba7a855dab79fa2628ba66ed1ea78e62d518 /lib/Transforms/Scalar
parent1aca2492526c0a1aa464f2993084f9b30b53c009 (diff)
downloadexternal_llvm-0988639963747a29fccf1273bbec996b4bac89a8.zip
external_llvm-0988639963747a29fccf1273bbec996b4bac89a8.tar.gz
external_llvm-0988639963747a29fccf1273bbec996b4bac89a8.tar.bz2
Remove check for an impossible condition: the condition of the while loop has
already checked that TmpBB->getSinglePredecessor() is non-null. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar')
-rw-r--r--lib/Transforms/Scalar/GVN.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp
index b29fe74..292a4b3 100644
--- a/lib/Transforms/Scalar/GVN.cpp
+++ b/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))