mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[LoopSimplify] Use BB::instructionsWithoutDebug to skip DbgInfo (NFC).
This patch updates some code responsible the skip debug info to use BasicBlock::instructionsWithoutDebug. I think this makes things slightly simpler and more direct. Reviewers: aprantl, vsk, chandlerc Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D46253 llvm-svn: 331217
This commit is contained in:
parent
23fa05864d
commit
2223b30382
@ -613,11 +613,8 @@ ReprocessLoop:
|
||||
// comparison and the branch.
|
||||
bool AllInvariant = true;
|
||||
bool AnyInvariant = false;
|
||||
for (BasicBlock::iterator I = ExitingBlock->begin(); &*I != BI; ) {
|
||||
for (auto I = ExitingBlock->instructionsWithoutDebug().begin(); &*I != BI; ) {
|
||||
Instruction *Inst = &*I++;
|
||||
// Skip debug info intrinsics.
|
||||
if (isa<DbgInfoIntrinsic>(Inst))
|
||||
continue;
|
||||
if (Inst == CI)
|
||||
continue;
|
||||
if (!L->makeLoopInvariant(Inst, AnyInvariant,
|
||||
|
Loading…
Reference in New Issue
Block a user