Lines Matching refs:SAI
73 bool isExpandable(const ScopArrayInfo *SAI,
111 void expandPhi(Scop &S, const ScopArrayInfo *SAI,
134 auto SAI = MA->getLatestScopArrayInfo(); in filterDependences() local
153 if (SAI != UserSAI) in filterDependences()
171 const ScopArrayInfo *SAI, SmallPtrSetImpl<MemoryAccess *> &Writes, in isExpandable() argument
174 if (SAI->isValueKind()) { in isExpandable()
175 Writes.insert(S.getValueDef(SAI)); in isExpandable()
176 for (auto MA : S.getValueUses(SAI)) in isExpandable()
179 } else if (SAI->isPHIKind()) { in isExpandable()
180 auto Read = S.getPHIRead(SAI); in isExpandable()
184 auto Writes = S.getPHIIncomings(SAI); in isExpandable()
197 emitRemark(SAI->getName() + " read from its original value.", in isExpandable()
203 } else if (SAI->isExitPHIKind()) { in isExpandable()
205 emitRemark(SAI->getName() + " is a ExitPhi node.", in isExpandable()
217 if (SAI != MA->getLatestScopArrayInfo()) in isExpandable()
226 emitRemark(SAI->getName() + " has read after write to the same " in isExpandable()
242 emitRemark(SAI->getName() + " has a maywrite access.", in isExpandable()
252 emitRemark(SAI->getName() + " has more than 1 write access.", in isExpandable()
272 emitRemark("The expansion of " + SAI->getName() + in isExpandable()
283 emitRemark(SAI->getName() + in isExpandable()
293 emitRemark("The expansion of " + SAI->getName() + in isExpandable()
306 emitRemark(SAI->getName() + " has 0 write access.", in isExpandable()
417 void MaximalStaticExpander::expandPhi(Scop &S, const ScopArrayInfo *SAI, in expandPhi() argument
420 for (auto MA : S.getPHIIncomings(SAI)) in expandPhi()
422 auto Read = S.getPHIRead(SAI); in expandPhi()
445 for (auto SAI : CurrentSAI) { in runOnScop() local
448 if (!isExpandable(SAI, AllWrites, AllReads, S, Dependences)) in runOnScop()
451 if (SAI->isValueKind() || SAI->isArrayKind()) { in runOnScop()
452 assert(AllWrites.size() == 1 || SAI->isValueKind()); in runOnScop()
458 } else if (SAI->isPHIKind()) { in runOnScop()
459 expandPhi(S, SAI, Dependences); in runOnScop()