[llvm] [X86] Try to shrink i64 compares if the input has enough sign bits (PR #149719)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 1 07:34:11 PDT 2025
================
@@ -23489,6 +23488,16 @@ static SDValue EmitCmp(SDValue Op0, SDValue Op1, X86::CondCode X86CC,
Op1 = DAG.getNode(ISD::TRUNCATE, dl, CmpVT, Op1);
}
+ // Try to shrink all i64 compares if the inputs are representable as signed
+ // i32.
+ if (CmpVT == MVT::i64 &&
----------------
AZero13 wrote:
Not needed. It works for all CC.
https://github.com/llvm/llvm-project/pull/149719
More information about the llvm-commits
mailing list