Skip to content

Commit

Permalink
[IRCE] Use range-for; NFC
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278606 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
sanjoy committed Aug 13, 2016
1 parent 568382f commit 81232a9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,13 +925,11 @@ void LoopConstrainer::cloneLoop(LoopConstrainer::ClonedLoop &Result,
// to be edited to reflect that. No phi nodes need to be introduced because
// the loop is in LCSSA.

for (auto SBBI = succ_begin(OriginalBB), SBBE = succ_end(OriginalBB);
SBBI != SBBE; ++SBBI) {

if (OriginalLoop.contains(*SBBI))
for (auto *SBB : successors(OriginalBB)) {
if (OriginalLoop.contains(SBB))
continue; // not an exit block

for (Instruction &I : **SBBI) {
for (Instruction &I : *SBB) {
if (!isa<PHINode>(&I))
break;

Expand Down

0 comments on commit 81232a9

Please sign in to comment.