[llvm] [LoopUnroll] Preserve SCEV MaxTripCount for sibling loops via new metadata (PR #191117)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 9 18:08:48 PDT 2026


efriedma-quic wrote:

I'm not really comfortable with adding new loop metadata which implicitly makes a loop have undefined behavior if it's wrong, especially for a very narrow purpose like this.

If we only need the information in the context of a single run of the unroller, maybe can we just compute the counts and store them in a side table?

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


More information about the llvm-commits mailing list