mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-29 06:53:53 +00:00
Minor code simplification.
llvm-svn: 74491
This commit is contained in:
parent
6ed9f9c9c5
commit
49c397bf4b
@ -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…
Reference in New Issue
Block a user