prevent latent switch creation
authorAndrew Lenharth <andrewl@lenharth.org>
Fri, 18 Nov 2005 13:57:03 +0000 (13:57 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Fri, 18 Nov 2005 13:57:03 +0000 (13:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24413 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaTargetMachine.cpp

index fd9cbe59bc52c71168e8de5a98c4fec9af8e2635..21a7f989810b8df1fcccb855d076391b261e1e9e 100644 (file)
@@ -79,7 +79,9 @@ bool AlphaTargetMachine::addPassesToEmitFile(PassManager &PM,
   if (FileType != TargetMachine::AssemblyFile) return true;
 
   PM.add(createLoopStrengthReducePass());
+  PM.add(createCFGSimplificationPass());
 
   // FIXME: Implement efficient support for garbage collection intrinsics.
   PM.add(createLowerGCPass());
 
@@ -92,8 +94,6 @@ bool AlphaTargetMachine::addPassesToEmitFile(PassManager &PM,
   // Make sure that no unreachable blocks are instruction selected.
   PM.add(createUnreachableBlockEliminationPass());
 
-  PM.add(createCFGSimplificationPass());
-
   if (EnableAlphaDAG)
     PM.add(createAlphaISelDag(*this));
   else