aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV8
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-15 07:19:53 +0000
committerChris Lattner <sabre@nondot.org>2006-01-15 07:19:53 +0000
commit7c419078876ca16ec82d4ddc5301f8fdaf0fe39e (patch)
tree48160ab76015a9f388fb2515c2ff84b645492231 /lib/Target/SparcV8
parentc0ab5226cc92b8d33104374a21896b8331f3fee1 (diff)
downloadexternal_llvm-7c419078876ca16ec82d4ddc5301f8fdaf0fe39e.zip
external_llvm-7c419078876ca16ec82d4ddc5301f8fdaf0fe39e.tar.gz
external_llvm-7c419078876ca16ec82d4ddc5301f8fdaf0fe39e.tar.bz2
reorder passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV8')
-rw-r--r--lib/Target/SparcV8/SparcV8TargetMachine.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/SparcV8/SparcV8TargetMachine.cpp b/lib/Target/SparcV8/SparcV8TargetMachine.cpp
index fbe353f..08e38fc 100644
--- a/lib/Target/SparcV8/SparcV8TargetMachine.cpp
+++ b/lib/Target/SparcV8/SparcV8TargetMachine.cpp
@@ -73,9 +73,6 @@ bool SparcV8TargetMachine::addPassesToEmitFile(PassManager &PM,
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());
- // Make sure that no unreachable blocks are instruction selected.
- PM.add(createUnreachableBlockEliminationPass());
-
// FIXME: implement the invoke/unwind instructions!
PM.add(createLowerInvokePass());
@@ -90,9 +87,14 @@ bool SparcV8TargetMachine::addPassesToEmitFile(PassManager &PM,
// Replace malloc and free instructions with library calls.
PM.add(createLowerAllocationsPass());
PM.add(createLowerSelectPass());
+ // Make sure that no unreachable blocks are instruction selected.
+ PM.add(createUnreachableBlockEliminationPass());
PM.add(createSparcV8SimpleInstructionSelector(*this));
- } else
+ } else {
+ // Make sure that no unreachable blocks are instruction selected.
+ PM.add(createUnreachableBlockEliminationPass());
PM.add(createSparcV8ISelDag(*this));
+ }
// Print machine instructions as they were initially generated.
if (PrintMachineCode)