[llvm] [DAG] SimplifyDemandedBits - ICMP_SLT(X, 0) - only sign mask of X is required (PR #164946)
Anikesh Parashar via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 9 12:45:39 PST 2025
================
@@ -1779,12 +1778,11 @@ bool TargetLowering::SimplifyDemandedBits(
SDLoc DL(Op);
EVT VT = Op0.getValueType();
SDValue NotOp0 = TLO.DAG.getNOT(DL, Op0, VT);
- Changed |= TLO.CombineTo(Op, NotOp0);
+ return TLO.CombineTo(Op, NotOp0);
} else {
- Changed |= TLO.CombineTo(Op, Op0);
+ return TLO.CombineTo(Op, Op0);
----------------
an1k3sh wrote:
Corrected :)
https://github.com/llvm/llvm-project/pull/164946
More information about the llvm-commits
mailing list