[llvm] [DAG] Support saturated truncate (PR #99418)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 27 06:45:32 PDT 2024


================
@@ -1410,6 +1410,12 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
     }
   }
 
+  for (MVT VT : {MVT::v8i16, MVT::v4i32}) {
+    setOperationAction(ISD::TRUNCATE_SSAT_S, VT, Custom);
----------------
ParkHanbum wrote:

agree. I also added a comment with that intention and I'm thinking maybe adding code to `DAGCombiner` can solve it. 

do you think I should include this in this patch as well?

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


More information about the llvm-commits mailing list