mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-27 15:29:51 +00:00
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
This commit is contained in:
parent
1aca249252
commit
0988639963
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user