[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:19 PDT 2025


================
@@ -11281,6 +11281,11 @@ SDValue DAGCombiner::visitFunnelShift(SDNode *N) {
   unsigned BitWidth = VT.getScalarSizeInBits();
   SDLoc DL(N);
 
+  // fold (fshl C0, C1, C2) -> C3
----------------
RKSimon wrote:

fshl/fshr

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


More information about the llvm-commits mailing list