[PATCH] D127085: [NFC] Use predecessors to replace make_range.
Jianjian Guan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 6 19:22:59 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbed7d707ac72: [NFC] Use predecessors to replace make_range. (authored by jacquesguan).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127085/new/
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.434673.patch
Type: text/x-patch
Size: 853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220607/09cb9690/attachment.bin>
More information about the llvm-commits
mailing list