[PATCH] D122319: NFC: [LICM] Update some stale comments
Djordje Todorovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 24 06:38:01 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9dbc687a5ec9: NFC: [LICM] Update some stale comments (authored by djtodoro).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122319/new/
https://reviews.llvm.org/D122319
Files:
llvm/lib/Transforms/Scalar/LICM.cpp
Index: llvm/lib/Transforms/Scalar/LICM.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/LICM.cpp
+++ llvm/lib/Transforms/Scalar/LICM.cpp
@@ -482,8 +482,7 @@
PredIteratorCache PIC;
// Promoting one set of accesses may make the pointers for another set
- // loop invariant, so run this in a loop (with the MaybePromotable set
- // decreasing in size over time).
+ // loop invariant, so run this in a loop.
bool Promoted = false;
bool LocalPromoted;
do {
@@ -2276,8 +2275,7 @@
return false;
};
- // Populate AST with potentially promotable accesses and remove them from
- // MaybePromotable, so they will not be checked again on the next iteration.
+ // Populate AST with potentially promotable accesses.
SmallPtrSet<Value *, 16> AttemptingPromotion;
foreachMemoryAccess(MSSA, L, [&](Instruction *I) {
if (IsPotentiallyPromotable(I)) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122319.417910.patch
Type: text/x-patch
Size: 963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220324/8816582a/attachment.bin>
More information about the llvm-commits
mailing list