Instead of zero extending the inputs by masking. We can shift them
left instead. This is cheaper when we don't zext.w instruction.
This does make the case where the inputs are already zero extended
or freely zero extendable worse though.
Paths
| Differential D155530
[RISCV] Improve type promotion for i32 clmulr/clmulh on RV64. ClosedPublic Authored by craig.topper on Jul 17 2023, 5:58 PM.
Details Summary Instead of zero extending the inputs by masking. We can shift them This does make the case where the inputs are already zero extended
Diff Detail
Event TimelineComment Actions LGTM. This revision is now accepted and ready to land.Jul 18 2023, 3:09 AM This revision was landed with ongoing or failed builds.Jul 18 2023, 10:39 AM Closed by commit rGea3683e98f10: [RISCV] Improve type promotion for i32 clmulr/clmulh on RV64. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 541632 llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rv64zbc-intrinsic.ll
llvm/test/CodeGen/RISCV/rv64zbc-zbkc-intrinsic.ll
|