[llvm] [WASM] Constant fold SIMD wasm intrinsics: any/alltrue (PR #148074)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 11 22:04:53 PDT 2025


================
@@ -0,0 +1,127 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+
+; RUN: opt -passes=instcombine -S < %s | FileCheck %s
----------------
lukel97 wrote:

The test/CodeGen directory is for tests that run `llc`, because this is actually in the middle end and running `opt` this should be in `llvm/test/Transforms/InstSimplify/ConstProp/WebAssembly/`

I think we also only need to run instsimplify for this since we're not creating any new instructions:
```suggestion
; RUN: opt -passes=instsimplify -S < %s | FileCheck %s
```

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


More information about the llvm-commits mailing list