[llvm] [DAG] SimplifyDemandedVectorElts - add handling for INT<->FP conversions (PR #117884)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 2 14:53:02 PST 2024
================
@@ -3736,6 +3736,14 @@ bool TargetLowering::SimplifyDemandedVectorElts(
KnownUndef.clearAllBits();
}
break;
+ case ISD::SINT_TO_FP:
+ case ISD::UINT_TO_FP:
+ case ISD::FP_TO_SINT:
+ case ISD::FP_TO_UINT:
+ if (SimplifyDemandedVectorElts(Op.getOperand(0), DemandedElts, KnownUndef,
+ KnownZero, TLO, Depth + 1))
+ return true;
+ break;
----------------
arsenm wrote:
Is the fallthrough to the undef handling tested (not sure this is actually a useful path)
https://github.com/llvm/llvm-project/pull/117884
More information about the llvm-commits
mailing list