Lines Matching refs:DepMatrix

63 void printDepMatrix(CharMatrix &DepMatrix) {  in printDepMatrix()  argument
64 for (auto I = DepMatrix.begin(), E = DepMatrix.end(); I != E; ++I) { in printDepMatrix()
73 static bool populateDependencyMatrix(CharMatrix &DepMatrix, unsigned Level, in populateDependencyMatrix() argument
167 DepMatrix.push_back(Dep); in populateDependencyMatrix()
168 if (DepMatrix.size() > MaxMemInstrCount) { in populateDependencyMatrix()
179 if (DepMatrix.size() == 0) in populateDependencyMatrix()
186 static void interChangeDepedencies(CharMatrix &DepMatrix, unsigned FromIndx, in interChangeDepedencies() argument
188 unsigned numRows = DepMatrix.size(); in interChangeDepedencies()
190 char TmpVal = DepMatrix[i][ToIndx]; in interChangeDepedencies()
191 DepMatrix[i][ToIndx] = DepMatrix[i][FromIndx]; in interChangeDepedencies()
192 DepMatrix[i][FromIndx] = TmpVal; in interChangeDepedencies()
198 static bool isOuterMostDepPositive(CharMatrix &DepMatrix, unsigned Row, in isOuterMostDepPositive() argument
201 if (DepMatrix[Row][i] == '<') in isOuterMostDepPositive()
203 if (DepMatrix[Row][i] == '>') in isOuterMostDepPositive()
211 static bool containsNoDependence(CharMatrix &DepMatrix, unsigned Row, in containsNoDependence() argument
214 if (DepMatrix[Row][i] != '=' || DepMatrix[Row][i] != 'S' || in containsNoDependence()
215 DepMatrix[Row][i] != 'I') in containsNoDependence()
221 static bool validDepInterchange(CharMatrix &DepMatrix, unsigned Row, in validDepInterchange() argument
225 if (isOuterMostDepPositive(DepMatrix, Row, OuterLoopId)) in validDepInterchange()
249 if (!containsNoDependence(DepMatrix, Row, OuterLoopId)) in validDepInterchange()
261 static bool isLegalToInterChangeLoops(CharMatrix &DepMatrix, in isLegalToInterChangeLoops() argument
265 unsigned NumRows = DepMatrix.size(); in isLegalToInterChangeLoops()
268 char InnerDep = DepMatrix[Row][InnerLoopId]; in isLegalToInterChangeLoops()
269 char OuterDep = DepMatrix[Row][OuterLoopId]; in isLegalToInterChangeLoops()
272 else if (!validDepInterchange(DepMatrix, Row, OuterLoopId, InnerDep, in isLegalToInterChangeLoops()
339 CharMatrix &DepMatrix);
376 CharMatrix &DepMatrix);
851 CharMatrix &DepMatrix) { in canInterchangeLoops() argument
853 if (!isLegalToInterChangeLoops(DepMatrix, InnerLoopId, OuterLoopId)) { in canInterchangeLoops()
951 CharMatrix &DepMatrix) { in isProfitabileForVectorization() argument
955 unsigned Row = DepMatrix.size(); in isProfitabileForVectorization()
957 if (DepMatrix[i][InnerLoopId] != 'S' && DepMatrix[i][InnerLoopId] != 'I') in isProfitabileForVectorization()
960 if (DepMatrix[i][OuterLoopId] != '=') in isProfitabileForVectorization()
970 CharMatrix &DepMatrix) { in isProfitable() argument
989 isProfitabileForVectorization(InnerLoopId, OuterLoopId, DepMatrix); in isProfitable()