[llvm] [DAG] Support saturated truncate (PR #99418)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 10:56:11 PDT 2024
================
@@ -14930,6 +15061,10 @@ SDValue DAGCombiner::visitTRUNCATE(SDNode *N) {
if (N0.getOpcode() == ISD::TRUNCATE)
return DAG.getNode(ISD::TRUNCATE, DL, VT, N0.getOperand(0));
+ // fold satruated truncate
----------------
RKSimon wrote:
satruated -> saturated
https://github.com/llvm/llvm-project/pull/99418
More information about the llvm-commits
mailing list