[llvm] [DA] Infer nsw on validated fixed-size delinearized subscripts (PR #201882)
Ryotaro Kasuga via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 7 10:27:03 PDT 2026
kasuga-fj wrote:
> As another example, there is a "hack" to force ScalarEvolution to run some expensive inference: you can create a meaningless SCEV expression such as a sext/zext of the subscripts, and you'll see that `nsw` gets inferred for the subscripts.
So another (almost certainly undesirable) solution for this issue is something like https://github.com/kasuga-fj/llvm-project/commit/4761122914b10e053afb610327fc733c9ec28112
https://github.com/llvm/llvm-project/pull/201882
More information about the llvm-commits
mailing list