aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-12-10 08:39:30 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-12-10 08:39:30 +0000
commit5aefa8a6fec1cdf2e8be74195df8d3739ce73c14 (patch)
tree6ca7df91958c52d84f3b1dedafa81dee628d4130
parentc2e5f3635aa0cd9d10ca4315eec0ed7f161d55f5 (diff)
downloadexternal_llvm-5aefa8a6fec1cdf2e8be74195df8d3739ce73c14.zip
external_llvm-5aefa8a6fec1cdf2e8be74195df8d3739ce73c14.tar.gz
external_llvm-5aefa8a6fec1cdf2e8be74195df8d3739ce73c14.tar.bz2
Move -lowerselect later in the chain; some select instructions were
slipping through into the instruction selector, which can't deal with them yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18758 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Sparc/SparcTargetMachine.cpp12
-rw-r--r--lib/Target/SparcV8/SparcV8TargetMachine.cpp12
2 files changed, 12 insertions, 12 deletions
diff --git a/lib/Target/Sparc/SparcTargetMachine.cpp b/lib/Target/Sparc/SparcTargetMachine.cpp
index 324fc5b..065dc2d 100644
--- a/lib/Target/Sparc/SparcTargetMachine.cpp
+++ b/lib/Target/Sparc/SparcTargetMachine.cpp
@@ -65,9 +65,6 @@ 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());
@@ -79,6 +76,9 @@ bool SparcV8TargetMachine::addPassesToEmitAssembly(PassManager &PM,
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
+ // FIXME: implement the select instruction in the instruction selector.
+ PM.add(createLowerSelectPass());
+
PM.add(createSparcV8SimpleInstructionSelector(*this));
// Print machine instructions as they were initially generated.
@@ -118,9 +118,6 @@ 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());
@@ -132,6 +129,9 @@ void SparcV8JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
+ // FIXME: implement the select instruction in the instruction selector.
+ PM.add(createLowerSelectPass());
+
PM.add(createSparcV8SimpleInstructionSelector(TM));
// Print machine instructions as they were initially generated.
diff --git a/lib/Target/SparcV8/SparcV8TargetMachine.cpp b/lib/Target/SparcV8/SparcV8TargetMachine.cpp
index 324fc5b..065dc2d 100644
--- a/lib/Target/SparcV8/SparcV8TargetMachine.cpp
+++ b/lib/Target/SparcV8/SparcV8TargetMachine.cpp
@@ -65,9 +65,6 @@ 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());
@@ -79,6 +76,9 @@ bool SparcV8TargetMachine::addPassesToEmitAssembly(PassManager &PM,
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
+ // FIXME: implement the select instruction in the instruction selector.
+ PM.add(createLowerSelectPass());
+
PM.add(createSparcV8SimpleInstructionSelector(*this));
// Print machine instructions as they were initially generated.
@@ -118,9 +118,6 @@ 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());
@@ -132,6 +129,9 @@ void SparcV8JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
+ // FIXME: implement the select instruction in the instruction selector.
+ PM.add(createLowerSelectPass());
+
PM.add(createSparcV8SimpleInstructionSelector(TM));
// Print machine instructions as they were initially generated.