[PATCH] D97332: [RISCV] Teach VSETVLI inserter to use VSETIVLI when possible.

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 24 07:15:53 PST 2021


frasercrmck added a comment.

It's my understanding that the meaning of `0` could change at some point but I think we can come to that if and when the time comes.



================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:3973
+          .addReg(DestReg, RegState::Define | RegState::Dead)
+          .addReg(MI.getOperand(VLIndex).getReg());
+    }
----------------
This could now be `addReg(VLReg)`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97332/new/

https://reviews.llvm.org/D97332



More information about the llvm-commits mailing list