summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lejeune <[email protected]>2012-08-01 22:49:44 +0200
committerTom Stellard <[email protected]>2012-08-15 21:07:14 +0000
commit565a4e2a8625c79bde0eacf674a4f633151eeb0e (patch)
tree46ad1b52e921aba91d10d8a08ae6bbc6640617e7
parenta614979286f8d329af318c1e9fb067e17cab4315 (diff)
radeon/llvm: Enable if-cvt
Signed-off-by: Tom Stellard <[email protected]>
-rw-r--r--src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp3
1 files changed, 3 insertions, 0 deletions
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 <llvm/CodeGen/Passes.h>
using namespace llvm;
@@ -148,6 +149,8 @@ bool AMDGPUPassConfig::addPostRegAlloc() {
}
bool AMDGPUPassConfig::addPreSched2() {
+
+ addPass(IfConverterID);
return false;
}