[llvm] [InstCombine] Combine trunc (lshr X, BW-1) to i1 --> icmp slt X, 0 (#142593) (PR #143846)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 12 02:04:39 PDT 2025


================
@@ -0,0 +1,23 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt -S -passes=instcombine < %s | FileCheck %s
+
+define i1 @src(i32 %0, ptr writeonly captures(none) initializes((0, 4)) %p) local_unnamed_addr #0 {
----------------
mayanksolanki393 wrote:

sure

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


More information about the llvm-commits mailing list