[PATCH] D127085: [mlir][NFC] Use predecessors to replace make_range.
Jianjian Guan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 5 21:40:11 PDT 2022
jacquesguan created this revision.
jacquesguan added reviewers: ftynse, mehdi_amini, rriddle, nicolasvasilache, ThomasRaoux.
Herald added a reviewer: bollu.
Herald added subscribers: bzcheeseman, Chia-hungDuan.
Herald added a project: All.
jacquesguan requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D127085
Files:
polly/lib/CodeGen/BlockGenerators.cpp
Index: polly/lib/CodeGen/BlockGenerators.cpp
===================================================================
--- polly/lib/CodeGen/BlockGenerators.cpp
+++ polly/lib/CodeGen/BlockGenerators.cpp
@@ -1588,7 +1588,7 @@
LoopPHI->insertBefore(&BBCopy->front());
LoopPHIInc->insertBefore(BBCopy->getTerminator());
- for (auto *PredBB : make_range(pred_begin(BB), pred_end(BB))) {
+ for (auto *PredBB : predecessors(BB)) {
if (!R->contains(PredBB))
continue;
if (L->contains(PredBB))
@@ -1597,7 +1597,7 @@
LoopPHI->addIncoming(NullVal, EndBlockMap[PredBB]);
}
- for (auto *PredBBCopy : make_range(pred_begin(BBCopy), pred_end(BBCopy)))
+ for (auto *PredBBCopy : predecessors(BBCopy))
if (LoopPHI->getBasicBlockIndex(PredBBCopy) < 0)
LoopPHI->addIncoming(NullVal, PredBBCopy);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127085.434385.patch
Type: text/x-patch
Size: 853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220606/d37fe7bd/attachment.bin>
More information about the llvm-commits
mailing list