| 40 | namespace hipsycl::compiler { |
| 41 | |
| 42 | VectorizationAnalysis::VectorizationAnalysis(VectorizationInfo &VecInfo, LoopInfo &LI, |
| 43 | DominatorTree &DT, PostDominatorTree &PDT) |
| 44 | : vecInfo(VecInfo), layout(VecInfo.getScalarFunction().getParent()->getDataLayout()), LI(LI), |
| 45 | DT(DT), SDA(DT, PDT, LI), region(VecInfo.getRegion()), allocaSSA(region) { |
| 46 | |
| 47 | // compute pointer provenance |
| 48 | allocaSSA.compute(); |
| 49 | IF_DEBUG_VA allocaSSA.print(errs()); |
| 50 | } |
| 51 | |
| 52 | bool VectorizationAnalysis::putOnWorklist(const llvm::Instruction &inst) { |
| 53 | if (mOnWorklist.insert(&inst).second) { |