[llvm] [IndVarSimplify] Do not replace ExitValue if it contains Udiv with non-constant divisor (PR #109945)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 06:18:20 PDT 2024


nikic wrote:

If SCEV could determine a small max trip count for the loop, we could take that into account when deciding whether to expand or not, but I doubt that it can in this case.

For this change, I'm concerned that you are optimizing the code for one specific benchmark, but will make things worse for other cases.

https://github.com/llvm/llvm-project/pull/109945


More information about the llvm-commits mailing list