[llvm] [ISel] Introduce llvm.clmul[rh] intrinsics (PR #168731)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 19 12:55:45 PST 2025
================
@@ -7121,6 +7121,34 @@ SDValue SelectionDAG::FoldConstantArithmetic(unsigned Opcode, const SDLoc &DL,
}
}
+ // Handle clmul special cases.
+ if (Opcode == ISD::CLMUL || Opcode == ISD::CLMULR || Opcode == ISD::CLMULH) {
----------------
topperc wrote:
This doesn't need to be special. You can use the binops handling by adding to the switch in `FoldValue`
https://github.com/llvm/llvm-project/pull/168731
More information about the llvm-commits
mailing list