[llvm] d6ddabd - Revert rG6ff1ea3244c543ad24fc99c7f4979db2f2078593 "Fix "use of uninitialized variable" static analyzer warning. NFCI."

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 27 04:44:59 PDT 2020


Author: Simon Pilgrim
Date: 2020-03-27T11:44:03Z
New Revision: d6ddabd7ef4c53ebd24ba9d5749dbb5c5cf45043

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

LOG: Revert rG6ff1ea3244c543ad24fc99c7f4979db2f2078593 "Fix "use of uninitialized variable" static analyzer warning. NFCI."

@dblaikie noticed that this may interfere with msan analysis

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/R600InstrInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/R600InstrInfo.cpp b/llvm/lib/Target/AMDGPU/R600InstrInfo.cpp
index c6cc8e8dfb52..e1da6e48eb5e 100644
--- a/llvm/lib/Target/AMDGPU/R600InstrInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/R600InstrInfo.cpp
@@ -541,7 +541,7 @@ R600InstrInfo::fitsReadPortLimitations(const std::vector<MachineInstr *> &IG,
 
   std::vector<std::vector<std::pair<int, unsigned>>> IGSrcs;
   ValidSwizzle.clear();
-  unsigned ConstCount = 0;
+  unsigned ConstCount;
   BankSwizzle TransBS = ALU_VEC_012_SCL_210;
   for (unsigned i = 0, e = IG.size(); i < e; ++i) {
     IGSrcs.push_back(ExtractSrcs(*IG[i], PV, ConstCount));


        


More information about the llvm-commits mailing list