[llvm] [X86] Try Folding icmp of v8i32 -> fcmp of v8f32 on AVX (PR #82290)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 10:00:29 PST 2024
================
@@ -2313,6 +2313,26 @@ bool TargetLowering::SimplifyDemandedBits(
Known = TLO.DAG.computeKnownBits(Op, DemandedElts, Depth);
break;
}
+ case ISD::SINT_TO_FP: {
+ EVT InnerVT = Op.getOperand(0).getValueType();
+ const APInt &DemandedBitsToUse =
+ TLO.DAG.getTargetLoweringInfo().isBitcastFree(VT, InnerVT)
+ ? OriginalDemandedBits
----------------
RKSimon wrote:
You can't safely use OriginalDemandedBits as it won't account for multiple uses - you will need to move this inside SimplifyMultipleUseDemandedBits
https://github.com/llvm/llvm-project/pull/82290
More information about the llvm-commits
mailing list