From 565a4e2a8625c79bde0eacf674a4f633151eeb0e Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Wed, 1 Aug 2012 22:49:44 +0200 Subject: [PATCH] radeon/llvm: Enable if-cvt Signed-off-by: Tom Stellard --- src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp b/src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp index 6b50128c9fc..b97c0febfc4 100644 --- a/src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp +++ b/src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp @@ -29,6 +29,7 @@ #include "llvm/Support/raw_os_ostream.h" #include "llvm/Transforms/IPO.h" #include "llvm/Transforms/Scalar.h" +#include using namespace llvm; @@ -148,6 +149,8 @@ bool AMDGPUPassConfig::addPostRegAlloc() { } bool AMDGPUPassConfig::addPreSched2() { + + addPass(IfConverterID); return false; } -- 2.30.2