[llvm] [CodeGen] Add preliminary plumbing for `samesign` flag (PR #112354)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 20:10:01 PDT 2024
================
@@ -1716,8 +1717,13 @@ bool TargetLowering::SimplifyDemandedBits(
// if we don't care about FP signed-zero. The use of SETLT with FP means
// that we don't care about NaNs.
if (CC == ISD::SETLT && Op1.getValueType().isInteger() &&
- (isNullConstant(Op1) || ISD::isBuildVectorAllZeros(Op1.getNode())))
+ (isNullConstant(Op1) || ISD::isBuildVectorAllZeros(Op1.getNode()))) {
+ if (Flags.hasSameSign()) {
+ Flags.setSameSign(false);
+ Op->setFlags(Flags);
----------------
arsenm wrote:
Needs test and is beyond infrastructure work
https://github.com/llvm/llvm-project/pull/112354
More information about the llvm-commits
mailing list