[llvm] Limit Number of Values used for SCEV Calculation (PR #140565)
Manish Kausik H via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 1 03:17:36 PDT 2025
Nirhar wrote:
I did some more study as to why the crash happens in the IR file that I have locally. It seems that while we calculate SCEV, we try to `StrengthenNoWrap` flags on SCEV Values, and that process is implemented recursively. For the IR file in question, we have a long chain of Values that are considered for strengthening recursively, and this exhausts the stack.
A better solution would be to iteratively compute NoWrap flag strengthening. I'll try and come up with a patch for that. The solution in this MR is not a good solution. Hence closing this PR.
https://github.com/llvm/llvm-project/pull/140565
More information about the llvm-commits
mailing list