[llvm] [DAG] Add basic folds for CLMUL nodes (PR #176961)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 20 10:11:18 PST 2026


================
@@ -7932,3 +7932,837 @@ define void @mul_use_commutative_clmul_v2i64(<2 x i64> %x, <2 x i64> %y, ptr %p0
   store <2 x i64> %yx, ptr %p1
   ret void
 }
+
+define <2 x i64> @pclmul(<2 x i64> %v0, <2 x i64> %v1) {
----------------
RKSimon wrote:

please can you not add this test for now - its part of another wip ticket

you should add a combine-clmul.ll file instead and focus on addressing the folds you've added in visitCLMUL - this will possibly be better inside the RISCV tests as they have better legal CLMUL handling (see rv64zbc-intrinsic.ll etc.)

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


More information about the llvm-commits mailing list