[llvm] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 13 19:46:33 PST 2023
================
@@ -263,6 +263,8 @@ namespace RISCV {
bool isSEXT_W(const MachineInstr &MI);
bool isZEXT_W(const MachineInstr &MI);
bool isZEXT_B(const MachineInstr &MI);
+// Returns true if this is the li rd, simm12 pattern, addi rd, x0, simm12.
+bool isLoadSImm12(const MachineInstr &MI, bool NonZero);
----------------
lukel97 wrote:
If this is only used by RISCVInsertVSETVLI.cpp can it just be moved into a static function there?
https://github.com/llvm/llvm-project/pull/65934
More information about the llvm-commits
mailing list