projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aca249
)
Remove check for an impossible condition: the condition of the while loop has
author
Bob Wilson
<bob.wilson@apple.com>
Mon, 25 Jan 2010 21:28:05 +0000
(21:28 +0000)
committer
Bob Wilson
<bob.wilson@apple.com>
Mon, 25 Jan 2010 21:28:05 +0000
(21:28 +0000)
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
lib/Transforms/Scalar/GVN.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/GVN.cpp
b/lib/Transforms/Scalar/GVN.cpp
index b29fe74b1ec7e6cf1b44042d940252daebc61dec..292a4b311ddd5ed3ecb2c9aebb99a41c649e355f 100644
(file)
--- 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))