[llvm] [DAG] Constant fold ISD::FSHL/FSHR nodes (PR #154480)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 20 09:49:38 PDT 2025


================
@@ -7054,6 +7066,30 @@ SDValue SelectionDAG::FoldConstantArithmetic(unsigned Opcode, const SDLoc &DL,
     }
   }
 
+  // Handle trinary-op special cases.
+  if (NumOps == 3) {
----------------
XChy wrote:

I see. Will fix it after merging the ADT change.

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


More information about the llvm-commits mailing list