[llvm] [AArch64][llvm] Preserve FP_TO_*_SAT VT operand in SVE scalar-combine (PR #177333)

Jonathan Thackray via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 11 05:03:44 PST 2026


================
@@ -20405,6 +20405,10 @@ tryToReplaceScalarFPConversionWithSVE(SDNode *N, SelectionDAG &DAG,
   if (DCI.isBeforeLegalizeOps())
     return SDValue();
 
+  if (N->getOpcode() == ISD::FP_TO_SINT_SAT ||
----------------
jthackray wrote:

Okay, I've updated this code now with the minimal fix to prevent the assert.

https://github.com/llvm/llvm-project/pull/177333


More information about the llvm-commits mailing list