Optimize (mul r, c) to (SLLI (ALSL r, r, i0), i1), in which
c = (1 + (1 << i0)) << i1.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
About the commit message, do you mean:
Optimize (mul r, c) to (SLLI (ALSL r, r, i0), i1)
Comment Actions
LGTM except a nit. Thanks.
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td | ||
---|---|---|
431 | Nit: ALSl r, r, i0 |
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td | ||
---|---|---|
431 | Thanks! I have fixed it before doing git push. |
Nit: ALSl r, r, i0