[PATCH] D102031: [RISCV] Use X0 as destination of inserted vsetvli when possible.
Jessica Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 24 14:14:47 PDT 2021
jrtc27 added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp:270
+ Register DestReg = RISCV::X0;
+ if (Info.getAVLReg() == RISCV::X0)
+ DestReg = MRI->createVirtualRegister(&RISCV::GPRRegClass);
----------------
Use the existing `AVLReg` variable rather than repeating the call?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102031/new/
https://reviews.llvm.org/D102031
More information about the llvm-commits
mailing list