[polly] r208287 - Adapt to DomTree changes in r199104
Tobias Grosser
tobias at grosser.es
Thu May 8 01:34:24 PDT 2014
Author: grosser
Date: Thu May 8 03:34:23 2014
New Revision: 208287
URL: http://llvm.org/viewvc/llvm-project?rev=208287&view=rev
Log:
Adapt to DomTree changes in r199104
This fixes the compilation of our GPGPU code generation experiment in Polly.
Contributed-by: Yabin Hu <yabin.hwu at gmail.com>
Modified:
polly/trunk/lib/CodeGen/PTXGenerator.cpp
Modified: polly/trunk/lib/CodeGen/PTXGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/PTXGenerator.cpp?rev=208287&r1=208286&r2=208287&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/PTXGenerator.cpp (original)
+++ polly/trunk/lib/CodeGen/PTXGenerator.cpp Thu May 8 03:34:23 2014
@@ -83,7 +83,7 @@ void PTXGenerator::createSubfunction(Set
BasicBlock *ExitBB = BasicBlock::Create(Context, "ptx.exit", FN);
BasicBlock *BodyBB = BasicBlock::Create(Context, "ptx.loop_body", FN);
- DominatorTree &DT = P->getAnalysis<DominatorTree>();
+ DominatorTree &DT = P->getAnalysis<DominatorTreeWrapperPass>().getDomTree();
DT.addNewBlock(HeaderBB, PrevBB);
DT.addNewBlock(ExitBB, HeaderBB);
DT.addNewBlock(BodyBB, HeaderBB);
More information about the llvm-commits
mailing list