[llvm] [WebAssembly] Constant fold wasm.dot (PR #149619)

Jasmine Tang via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 08:30:49 PDT 2025


================
@@ -3826,6 +3827,37 @@ static Constant *ConstantFoldFixedVectorCall(
     }
     return ConstantVector::get(Result);
   }
+  case Intrinsic::wasm_dot: {
+    unsigned NumElements =
+        cast<FixedVectorType>(Operands[0]->getType())->getNumElements();
+
+    assert(NumElements == 8 && Result.size() == 4 &&
+           "wasm dot takes i16x8 and produces i32x4");
----------------
badumbatish wrote:

mmhm i think this is set with the code formatter, if i change it then clang-format it, it'll stay the same.

I think in the new version it's only 3 spaces?

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


More information about the llvm-commits mailing list