[llvm] [LV] Use getSmallBestKnownTC in IV-overflow-check (PR #195226)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 00:50:23 PDT 2026


david-arm wrote:

> Out of curiosity do we ever see scalable TCs in practice?

Yeah, @paulwalker-arm added support specifically to support loops with scalable TCs. It can happen when using target builtins in C where you might calculate the trip count as the total number of elements you intend to process. For example, TC = N_VEC_ITERATIONS * N_VEC_ELEMS.

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


More information about the llvm-commits mailing list