[llvm] [LV] Extend FindFirstIV to unsigned case (PR #146386)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 3 04:15:34 PDT 2025


================
@@ -941,6 +941,205 @@ exit:                                             ; preds = %loop
   ret i16 %spec.select.lcssa
 }
 
+; The signed sentinel value for decreasing-IV vectorization is LONG_MAX, and since
+; the IV hits this value with smin vectorization, it needs to be vectorized with a
+; an unsigned sentinel and umin instead.
+define i64 @select_decreasing_induction_icmp_iv_unsigned(ptr %a) {
----------------
artagnon wrote:

Oops, I forgot. Thanks for the reminder.

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


More information about the llvm-commits mailing list