[llvm] [SCEV] Avoid unnecessary call to getExitingBlock() in computeExitLimit() (PR #96188)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 20 06:33:52 PDT 2024
================
@@ -1766,6 +1766,7 @@ class ScalarEvolution {
/// this call will try to use a minimal set of SCEV predicates in order to
/// return an exact answer.
ExitLimit computeExitLimit(const Loop *L, BasicBlock *ExitingBlock,
+ bool ControlsOnlyExit,
----------------
nikic wrote:
```suggestion
bool IsOnlyExit,
```
here and elsewhere. The APIs that use ControlsOnlyExit pass a (controlling) exit condition, using this here doesn't make a lot of sense.
https://github.com/llvm/llvm-project/pull/96188
More information about the llvm-commits
mailing list