[llvm] [ValueTracking] Improve KnownBits for signed min-max clamping (PR #120576)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 08:34:45 PST 2024


================
@@ -0,0 +1,174 @@
+; RUN: opt < %s -passes=aggressive-instcombine -mtriple=x86_64 -S | FileCheck %s
+
+; This LIT test checks if TruncInstCombine pass correctly recognizes the
+; constraints from a signed min-max clamp. The clamp is a sequence of smin and
+; smax instructions limiting a variable into a range, smin <= x <= smax.
+
+declare i16 @llvm.smin.i16(i16, i16)
----------------
adam-bzowski wrote:

Removed.

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


More information about the llvm-commits mailing list