[PATCH] D102854: [RISCV] Optimize or/xor with immediate in the zbs extension
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 20 11:57:39 PDT 2021
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoB.td:130
+ if (Subtarget->is64Bit())
+ return isPowerOf2_64(I);
+ else
----------------
I think it's ok to use isPowerOf2_64 even for RV32. I was zero extended so the upper bits are 0.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102854/new/
https://reviews.llvm.org/D102854
More information about the llvm-commits
mailing list