aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2021-08-02 10:43:56 -0700
committerPhilip Reames <listmail@philipreames.com>2021-08-02 10:44:56 -0700
commitebc4c4e3b060ebd92a45a590818515c4cecb279f (patch)
treee26f8146628cec48c3cd4bf888e59cae626f32a0 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
parentc4a65434d894ca6f8ba1dcf338824b369c67f01b (diff)
downloadllvm-ebc4c4e3b060ebd92a45a590818515c4cecb279f.zip
llvm-ebc4c4e3b060ebd92a45a590818515c4cecb279f.tar.gz
llvm-ebc4c4e3b060ebd92a45a590818515c4cecb279f.tar.bz2
[unroll] Add clarifying comment
The option to not preserve LCSSA is in fact not tested at all in upstream. I was tempted to just remove the code entirely, but realized I didn't need to for my actual goal.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
index 6749d3db..cb538fd 100644
--- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
@@ -436,6 +436,7 @@ static bool canSafelyUnrollMultiExitLoop(Loop *L, BasicBlock *LatchExit,
// loop. Check for these below.
// We rely on LCSSA form being preserved when the exit blocks are transformed.
+ // (Note that only an off-by-default mode of the old PM disables PreserveLCCA.)
if (!PreserveLCSSA)
return false;