[llvm] f943c58 - [RISCC] Add missing words to comment. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 1 07:41:04 PST 2022


Author: Craig Topper
Date: 2022-02-01T07:39:51-08:00
New Revision: f943c58cae2480755cecdac5be832274f238df93

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

LOG: [RISCC] Add missing words to comment. NFC

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 65226dcabfb8..649eb57b325b 100644
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -999,10 +999,11 @@ bool RISCVInsertVSETVLI::needVSETVLIPHI(const VSETVLIInfo &Require,
 
 void RISCVInsertVSETVLI::emitVSETVLIs(MachineBasicBlock &MBB) {
   VSETVLIInfo CurInfo;
-  // BBLocalInfo tracks the VL/VTYPE state way BBInfo.Change was calculated in
-  // computeIncomingVLVTYPE. We need this to apply canSkipVSETVLIForLoadStore
-  // the same way computeIncomingVLVTYPE did. We can't include predecessor
-  // information in that decision to avoid disagreeing with the global analysis.
+  // BBLocalInfo tracks the VL/VTYPE state the same way BBInfo.Change was
+  // calculated in computeIncomingVLVTYPE. We need this to apply
+  // canSkipVSETVLIForLoadStore the same way computeIncomingVLVTYPE did. We
+  // can't include predecessor information in that decision to avoid disagreeing
+  // with the global analysis.
   VSETVLIInfo BBLocalInfo;
   // Only be set if current VSETVLIInfo is from an explicit VSET(I)VLI.
   MachineInstr *PrevVSETVLIMI = nullptr;


        


More information about the llvm-commits mailing list