Get rid of selects the easy way
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 18 Jun 2004 08:46:15 +0000 (08:46 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 18 Jun 2004 08:46:15 +0000 (08:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14230 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcTargetMachine.cpp
lib/Target/SparcV8/SparcV8TargetMachine.cpp

index a888423a1524f7fc4fb62845f40b3013224aea88..81d05dad1408b6b4d1cbb5db67eca629898f79aa 100644 (file)
@@ -46,6 +46,9 @@ bool SparcV8TargetMachine::addPassesToEmitAssembly(PassManager &PM,
 
   // Replace malloc and free instructions with library calls.
   PM.add(createLowerAllocationsPass());
+
+  // FIXME: implement the select instruction in the instruction selector.
+  PM.add(createLowerSelectPass());
   
   // FIXME: implement the switch instruction in the instruction selector.
   PM.add(createLowerSwitchPass());
@@ -91,6 +94,9 @@ void SparcV8JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
   // Replace malloc and free instructions with library calls.
   PM.add(createLowerAllocationsPass());
   
+  // FIXME: implement the select instruction in the instruction selector.
+  PM.add(createLowerSelectPass());
+  
   // FIXME: implement the switch instruction in the instruction selector.
   PM.add(createLowerSwitchPass());
 
index a888423a1524f7fc4fb62845f40b3013224aea88..81d05dad1408b6b4d1cbb5db67eca629898f79aa 100644 (file)
@@ -46,6 +46,9 @@ bool SparcV8TargetMachine::addPassesToEmitAssembly(PassManager &PM,
 
   // Replace malloc and free instructions with library calls.
   PM.add(createLowerAllocationsPass());
+
+  // FIXME: implement the select instruction in the instruction selector.
+  PM.add(createLowerSelectPass());
   
   // FIXME: implement the switch instruction in the instruction selector.
   PM.add(createLowerSwitchPass());
@@ -91,6 +94,9 @@ void SparcV8JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
   // Replace malloc and free instructions with library calls.
   PM.add(createLowerAllocationsPass());
   
+  // FIXME: implement the select instruction in the instruction selector.
+  PM.add(createLowerSelectPass());
+  
   // FIXME: implement the switch instruction in the instruction selector.
   PM.add(createLowerSwitchPass());