[llvm] [DAG] Constant fold ISD::FSHL/FSHR nodes (PR #154480)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 04:26:20 PDT 2025
================
@@ -8324,6 +8336,20 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
}
}
+ // Perform trivial constant folding for arithmetic operators.
+ switch (Opcode) {
+ case ISD::FMA:
+ case ISD::FMAD:
+ case ISD::SETCC:
+ case ISD::BITCAST:
----------------
RKSimon wrote:
remove case ISD::BITCAST:
https://github.com/llvm/llvm-project/pull/154480
More information about the llvm-commits
mailing list