[llvm] [CodeGen] Add preliminary plumbing for `samesign` flag (PR #112354)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 22 17:43:02 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);
----------------
antoniofrighetto wrote:
Dropped it.
https://github.com/llvm/llvm-project/pull/112354
More information about the llvm-commits
mailing list