[PATCH] D92679: [RISCV] Add a pass to remove duplicate VSETVLI instructions in a basic block.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 4 12:45:23 PST 2020
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVCleanupVSETVLI.cpp:85
+ // Does this VSETVLI use the same AVL register and VTYPE immediate?
+ if (PrevAVLReg != AVLReg || PrevVTYPEImm != VTYPEImm) {
+ PrevVSETVLI = &MI;
----------------
Thinking about this more, this isn't correct if AVL is X0. I think we would need that the that they both have a non-X0 Def. Or that the one we're removing has an X0 def.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92679/new/
https://reviews.llvm.org/D92679
More information about the llvm-commits
mailing list