[llvm] LAA: don't version single-iteration loops (PR #96927)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 10:08:37 PDT 2024


fhahn wrote:

> Thanks for the guidance. I realized that this was the case, but wasn't sure about adding a special-case for single-iteration loops.

Yeah, as I mentioned earlier, it would also be good to understand how we get to the point that someone asks loop-versioning to version such a loop. It might need to be fixed in the passes that requesting versioning, based on the benefit the passes get from versioning (e.g. depending on the pass, other small trip counts may also not be profitable, but ideally that would be decided by the pass that requests versioning, as there more info is available)

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


More information about the llvm-commits mailing list