[llvm] [WebAssembly] Optimize away mask of 63 for shl ( zext (and i32 63))) (PR #152397)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 28 08:32:09 PST 2025


================
@@ -18,6 +18,21 @@ define i32 @shl_i32(i32 %v, i32 %x) {
   ret i32 %a
 }
 
+define i64 @shl_i64_i32(i64 %v, i32 %x) {
----------------
lukel97 wrote:

How about `shl_i64_zext`?

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


More information about the llvm-commits mailing list