diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp b/llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp index b125e952ec94..31b8cd34eb24 100644 --- a/llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp @@ -347,7 +347,7 @@ llvm::UnrollAndJamLoop(Loop *L, unsigned Count, unsigned TripCount, !EnableFSDiscriminator) for (BasicBlock *BB : L->getBlocks()) for (Instruction &I : *BB) - if (!isa<DbgInfoIntrinsic>(&I)) + if (!I.isDebugOrPseudoInst()) if (const DILocation *DIL = I.getDebugLoc()) { auto NewDIL = DIL->cloneByMultiplyingDuplicationFactor(Count); if (NewDIL) @@ -757,11 +757,11 @@ checkDependencies(Loop &Root, const BasicBlockSet &SubLoopBlocks, DependenceInfo &DI, LoopInfo &LI) { SmallVector<BasicBlockSet, 8> AllBlocks; for (Loop *L : Root.getLoopsInPreorder()) - if (ForeBlocksMap.find(L) != ForeBlocksMap.end()) + if (ForeBlocksMap.contains(L)) AllBlocks.push_back(ForeBlocksMap.lookup(L)); AllBlocks.push_back(SubLoopBlocks); for (Loop *L : Root.getLoopsInPreorder()) - if (AftBlocksMap.find(L) != AftBlocksMap.end()) + if (AftBlocksMap.contains(L)) AllBlocks.push_back(AftBlocksMap.lookup(L)); unsigned LoopDepth = Root.getLoopDepth(); |