[llvm] r185294 - R600: Fix an unitialized variable in R600InstrInfo.cpp

Vincent Lejeune vljn at ovi.com
Sun Jun 30 14:44:06 PDT 2013


Author: vljn
Date: Sun Jun 30 16:44:06 2013
New Revision: 185294

URL: http://llvm.org/viewvc/llvm-project?rev=185294&view=rev
Log:
R600: Fix an unitialized variable in R600InstrInfo.cpp

Modified:
    llvm/trunk/lib/Target/R600/R600InstrInfo.cpp

Modified: llvm/trunk/lib/Target/R600/R600InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/R600InstrInfo.cpp?rev=185294&r1=185293&r2=185294&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/R600InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/R600/R600InstrInfo.cpp Sun Jun 30 16:44:06 2013
@@ -449,7 +449,7 @@ R600InstrInfo::fitsReadPortLimitations(c
   std::vector<std::vector<std::pair<int, unsigned> > > IGSrcs;
   ValidSwizzle.clear();
   unsigned ConstCount;
-  BankSwizzle TransBS;
+  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));
     unsigned Op = getOperandIdx(IG[i]->getOpcode(),





More information about the llvm-commits mailing list