[llvm] Limit Number of Values used for SCEV Calculation (PR #140565)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Mon May 19 11:48:30 PDT 2025
efriedma-quic wrote:
The problem with implementing a limit the way you've done it is that it leads to weird behavior: when you hit the limit, the "limited" result ends up in the SCEV cache. So anything that was calculated is permanently "unknown", which is likely to confuse future calculations.
ScalarEvolution::createSCEVIter tries pretty hard to avoid doing anything recursively; maybe it can be fixed for your specific case?
https://github.com/llvm/llvm-project/pull/140565
More information about the llvm-commits
mailing list