[PATCH] D81225: Correctly report modified status for LoopDistribute
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 18 11:27:55 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4dd332723de9: Fix return status of LoopDistribute (authored by serge-sans-paille).
Changed prior to commit:
https://reviews.llvm.org/D81225?vs=269319&id=271795#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81225/new/
https://reviews.llvm.org/D81225
Files:
llvm/lib/Transforms/Scalar/LoopDistribute.cpp
Index: llvm/lib/Transforms/Scalar/LoopDistribute.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/LoopDistribute.cpp
+++ llvm/lib/Transforms/Scalar/LoopDistribute.cpp
@@ -789,12 +789,6 @@
// instructions to partitions.
Partitions.setupPartitionIdOnInstructions();
- // To keep things simple have an empty preheader before we version or clone
- // the loop. (Also split if this has no predecessor, i.e. entry, because we
- // rely on PH having a predecessor.)
- if (!PH->getSinglePredecessor() || &*PH->begin() != PH->getTerminator())
- SplitBlock(PH, PH->getTerminator(), DT, LI);
-
// If we need run-time checks, version the loop now.
auto PtrToPartition = Partitions.computePartitionSetForPointers(*LAI);
const auto *RtPtrChecking = LAI->getRuntimePointerChecking();
@@ -807,6 +801,12 @@
"may not insert runtime check with convergent operation");
}
+ // To keep things simple have an empty preheader before we version or clone
+ // the loop. (Also split if this has no predecessor, i.e. entry, because we
+ // rely on PH having a predecessor.)
+ if (!PH->getSinglePredecessor() || &*PH->begin() != PH->getTerminator())
+ SplitBlock(PH, PH->getTerminator(), DT, LI);
+
if (!Pred.isAlwaysTrue() || !Checks.empty()) {
assert(!LAI->hasConvergentOp() && "inserting illegal loop versioning");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81225.271795.patch
Type: text/x-patch
Size: 1446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200618/dca20912/attachment.bin>
More information about the llvm-commits
mailing list