forked from OSchip/llvm-project
Remove check for an impossible condition: the condition of the while loop has
already checked that TmpBB->getSinglePredecessor() is non-null. llvm-svn: 94451
This commit is contained in:
parent
822742fef9
commit
70c8fe5e4e
|
@ -1522,8 +1522,6 @@ bool GVN::processNonLocalLoad(LoadInst *LI,
|
||||||
while (TmpBB->getSinglePredecessor()) {
|
while (TmpBB->getSinglePredecessor()) {
|
||||||
isSinglePred = true;
|
isSinglePred = true;
|
||||||
TmpBB = TmpBB->getSinglePredecessor();
|
TmpBB = TmpBB->getSinglePredecessor();
|
||||||
if (!TmpBB) // If haven't found any, bail now.
|
|
||||||
return false;
|
|
||||||
if (TmpBB == LoadBB) // Infinite (unreachable) loop.
|
if (TmpBB == LoadBB) // Infinite (unreachable) loop.
|
||||||
return false;
|
return false;
|
||||||
if (Blockers.count(TmpBB))
|
if (Blockers.count(TmpBB))
|
||||||
|
|
Loading…
Reference in New Issue