OSDN Git Service

R600: Fix an unitialized variable in R600InstrInfo.cpp
authorVincent Lejeune <vljn@ovi.com>
Sun, 30 Jun 2013 21:44:06 +0000 (21:44 +0000)
committerVincent Lejeune <vljn@ovi.com>
Sun, 30 Jun 2013 21:44:06 +0000 (21:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185294 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/R600InstrInfo.cpp

index 302e402..969a7ce 100644 (file)
@@ -449,7 +449,7 @@ R600InstrInfo::fitsReadPortLimitations(const std::vector<MachineInstr *> &IG,
   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(),