[llvm] [LoopPeel] Support min/max intrinsics in loop peeling (PR #93162)

Sergey Kachkov via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 03:34:12 PDT 2024


skachkov-sc wrote:

> The idea here looks reasonable, but I wonder if we can reuse the existing code more? Extract the part that works on a decomposed icmp into a separate function and then call it with the icmp for the select expansion of the min/max?

The ammount of shared code will be quite small (because for min/max intrinsics we don't need to process very special equality comparision case), but we can try to split part that finds number of iterations where predicate is still known.

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


More information about the llvm-commits mailing list