mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74491 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4ff863c257
commit
2aa93efa0c
@ -282,10 +282,9 @@ ReprocessLoop:
|
||||
// Attempt to hoist out all instructions except for the
|
||||
// comparison and the branch.
|
||||
bool AllInvariant = true;
|
||||
for (BasicBlock::iterator I = ExitingBlock->begin(),
|
||||
E = ExitingBlock->end(); I != E; ) {
|
||||
for (BasicBlock::iterator I = ExitingBlock->begin(); &*I != BI; ) {
|
||||
Instruction *Inst = I++;
|
||||
if (Inst == BI || Inst == CI)
|
||||
if (Inst == CI)
|
||||
continue;
|
||||
if (Inst->isTrapping()) {
|
||||
AllInvariant = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user