mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 18:34:09 +00:00
A block dominates itself, by definition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109400 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a29dbd2dcc
commit
cb6816dc81
@ -677,7 +677,7 @@ void LoopIndexSplit::removeBlocks(BasicBlock *DeadBB, Loop *LP,
|
||||
for(pred_iterator PI = pred_begin(FrontierBB), PE = pred_end(FrontierBB);
|
||||
PI != PE; ++PI) {
|
||||
BasicBlock *P = *PI;
|
||||
if (P == DeadBB || DT->dominates(DeadBB, P))
|
||||
if (DT->dominates(DeadBB, P))
|
||||
PredBlocks.push_back(P);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user