[llvm] [InstCombine] Fold Minimum over trailing or leading zeros (PR #173768)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 28 09:09:39 PST 2025


================
@@ -380,3 +380,29 @@ define i16 @umin_ctlz_i16_negative_two_uses(i16 %X) {
   %ret = add i16 %ctlz, %op0
   ret i16 %ret
 }
+
+define dso_local range(i32 0, 33) i32 @src1(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
----------------
nikic wrote:

Please drop all the unnecessary parts (range, dso_local, noundef, tail, etc) and use named values.

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


More information about the llvm-commits mailing list