radeon/llvm: Enable if-cvt
authorVincent Lejeune <vljn@ovi.com>
Wed, 1 Aug 2012 20:49:44 +0000 (22:49 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 15 Aug 2012 21:07:14 +0000 (21:07 +0000)
Signed-off-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp

index 6b50128c9fcf8978e1869468dd3a7e1a00771286..b97c0febfc41748cacfb998f2c0020f54906de24 100644 (file)
@@ -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;
 }