aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-07-13 17:31:29 +0000
committerDale Johannesen <dalej@apple.com>2007-07-13 17:31:29 +0000
commit72f159640382a16e036b63dcb9c0b427e6d5dc0a (patch)
treed2c6038788bd14ed9d1ff38196d95ae83fbe0601
parente7e7d0d7e39d0c7c659d26b97e8081fce0fcd749 (diff)
Modify previous patch per review comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39817 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp6
-rw-r--r--lib/CodeGen/PostRASchedulerList.cpp2
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index b50b275392..b72704bd80 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -79,7 +79,8 @@ LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM,
PM.add(createPrologEpilogCodeInserter());
// Second pass scheduler.
- PM.add(createPostRAScheduler());
+ if (!Fast)
+ PM.add(createPostRAScheduler());
// Branch folding must be run after regalloc and prolog/epilog insertion.
if (!Fast)
@@ -185,7 +186,8 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM,
PM.add(createMachineFunctionPrinterPass(cerr));
// Second pass scheduler.
- PM.add(createPostRAScheduler());
+ if (!Fast)
+ PM.add(createPostRAScheduler());
// Branch folding must be run after regalloc and prolog/epilog insertion.
if (!Fast)
diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp
index 3708f56be0..06f47c7125 100644
--- a/lib/CodeGen/PostRASchedulerList.cpp
+++ b/lib/CodeGen/PostRASchedulerList.cpp
@@ -1,4 +1,4 @@
-//===----- SchedulePostRAList.cpp - list scheduler ----===//
+//===----- SchedulePostRAList.cpp - list scheduler ------------------------===//
//
// The LLVM Compiler Infrastructure
//