From 1b1f7fb66b134f87d6ff11e256c7a4db872e2988 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 19 Aug 2013 07:29:05 -0700 Subject: [PATCH] XXX: Enable CFG structurizer --- lib/Target/R600/AMDGPUTargetMachine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/R600/AMDGPUTargetMachine.cpp b/lib/Target/R600/AMDGPUTargetMachine.cpp index d77cddd..e46640e 100644 --- a/lib/Target/R600/AMDGPUTargetMachine.cpp +++ b/lib/Target/R600/AMDGPUTargetMachine.cpp @@ -119,10 +119,10 @@ void AMDGPUTargetMachine::addAnalysisPasses(PassManagerBase &PM) { bool AMDGPUPassConfig::addPreISel() { const AMDGPUSubtarget &ST = TM->getSubtarget(); - addPass(createFlattenCFGPass()); + addPass(createFlattenCFGPass()); + addPass(createStructurizeCFGPass()); if (ST.getGeneration() > AMDGPUSubtarget::NORTHERN_ISLANDS) { addPass(createSITypeRewriter()); - addPass(createStructurizeCFGPass()); addPass(createSIAnnotateControlFlowPass()); } else { addPass(createR600TextureIntrinsicsReplacer()); -- 1.8.1.4