[llvm] [WebAssembly] Add support for avgr_u in loops (PR #153252)
Jasmine Tang via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 14 13:48:20 PDT 2025
================
@@ -1144,6 +1144,9 @@ def : Pat<(wasm_shr_u
(vec.splat (i32 1))),
(i32 1)),
(inst $lhs, $rhs)>;
+
+def : Pat<(vec.vt(avgceilu(vec.vt V128:$lhs), (vec.vt V128:$rhs))), (inst $lhs,
+ $rhs)>;
----------------
badumbatish wrote:
hi Luke, I also prefer the spacing and the indentation as yours, but
```
clang/tools/clang-format/git-clang-format --binary ./build/bin/clang-format HEAD~1
```
gives out the initial formatting.
https://github.com/llvm/llvm-project/pull/153252
More information about the llvm-commits
mailing list