[PATCH] D150670: [WebAssembly] Disable generation of fshl/fshr for rotates
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 26 06:36:32 PDT 2023
nikic added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/fsh.ll:664
+; CHECK-NEXT: [[T1:%.*]] = and i32 [[A:%.*]], -65536
+; CHECK-NEXT: [[T2:%.*]] = call i32 @llvm.fshl.i32(i32 [[T1]], i32 [[T1]], i32 16)
; CHECK-NEXT: ret i32 [[T2]]
----------------
We still want to simplify this case. Could possibly be done by checking whether all demanded bits are zero for one of the operands in the rotate case.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150670/new/
https://reviews.llvm.org/D150670
More information about the llvm-commits
mailing list