[llvm] aabf6df - [RISCV] Remove redundant dependency on SlotIndexes in RISCVInsertVSETVLI. NFC

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 18 02:05:13 PDT 2024


Author: Luke Lau
Date: 2024-06-18T17:04:59+08:00
New Revision: aabf6df644d1906aaa8ebe95868e4ef0c262d428

URL: https://github.com/llvm/llvm-project/commit/aabf6df644d1906aaa8ebe95868e4ef0c262d428
DIFF: https://github.com/llvm/llvm-project/commit/aabf6df644d1906aaa8ebe95868e4ef0c262d428.diff

LOG: [RISCV] Remove redundant dependency on SlotIndexes in RISCVInsertVSETVLI. NFC

SlotIndexes is already marked as a transitive requirement of
LiveIntervals, so we don't need to specify it again in
RISCVInsertVSETVLI.

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
index b7dad160a7f64..d36ce60c24185 100644
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -892,7 +892,6 @@ class RISCVInsertVSETVLI : public MachineFunctionPass {
 
     AU.addUsedIfAvailable<LiveIntervals>();
     AU.addPreserved<LiveIntervals>();
-    AU.addUsedIfAvailable<SlotIndexes>();
     AU.addPreserved<SlotIndexes>();
     AU.addPreserved<LiveDebugVariables>();
     AU.addPreserved<LiveStacks>();


        


More information about the llvm-commits mailing list