| 28 | namespace { |
| 29 | using namespace hipsycl::compiler; |
| 30 | bool simplifyKernel(llvm::Function &F, llvm::DominatorTree &DT, llvm::AssumptionCache &AC) { |
| 31 | bool Changed = true; |
| 32 | HIPSYCL_DEBUG_INFO << "Promote allocas in " << F.getName() << "\n"; |
| 33 | utils::promoteAllocas(&F.getEntryBlock(), DT, AC); |
| 34 | return Changed; |
| 35 | } |
| 36 | } // namespace |
| 37 | |
| 38 | void hipsycl::compiler::SimplifyKernelPassLegacy::getAnalysisUsage(llvm::AnalysisUsage &AU) const { |
no test coverage detected