diff options
author | Nikita Popov <npopov@redhat.com> | 2023-05-02 12:13:53 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-05-02 12:17:05 +0200 |
commit | 5362a0d859d8e96b3f7c0437b7866e17a818a4f7 (patch) | |
tree | 77a9d26248ab199bc3654bc1349fd55f365084c8 /llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | |
parent | 41549b535097db923386a64ed769bf450943e6a3 (diff) | |
download | llvm-5362a0d859d8e96b3f7c0437b7866e17a818a4f7.zip llvm-5362a0d859d8e96b3f7c0437b7866e17a818a4f7.tar.gz llvm-5362a0d859d8e96b3f7c0437b7866e17a818a4f7.tar.bz2 |
[LCSSA] Remove unused ScalarEvolution argument (NFC)
After D149435, LCSSA formation no longer needs access to
ScalarEvolution, so remove the argument from the utilities.
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp index 68e15de..461272f 100644 --- a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp @@ -460,7 +460,7 @@ static void hoistLoopToNewParent(Loop &L, BasicBlock &Preheader, // Because we just hoisted a loop out of this one, we have essentially // created new exit paths from it. That means we need to form LCSSA PHI // nodes for values used in the no-longer-nested loop. - formLCSSA(*OldContainingL, DT, &LI, SE); + formLCSSA(*OldContainingL, DT, &LI); // We shouldn't need to form dedicated exits because the exit introduced // here is the (just split by unswitching) preheader. However, after trivial @@ -2551,7 +2551,7 @@ static void unswitchNontrivialInvariants( // First build LCSSA for this loop so that we can preserve it when // forming dedicated exits. We don't want to perturb some other loop's // LCSSA while doing that CFG edit. - formLCSSA(UpdateL, DT, &LI, SE); + formLCSSA(UpdateL, DT, &LI); // For loops reached by this loop's original exit blocks we may // introduced new, non-dedicated exits. At least try to re-form dedicated |