diff options
author | Dan Gohman <gohman@apple.com> | 2008-10-07 23:00:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-10-07 23:00:56 +0000 |
commit | 60ad173dfe8c26852cd8a6146697c6f3f14d01a9 (patch) | |
tree | 296d0c68ef2693ad345ad4315fe248d9f3e587d1 | |
parent | 9fedacbede85012b10f779fd3ad123b82570b73b (diff) | |
download | bcm5719-llvm-60ad173dfe8c26852cd8a6146697c6f3f14d01a9.tar.gz bcm5719-llvm-60ad173dfe8c26852cd8a6146697c6f3f14d01a9.zip |
Remove -disable-fast-isel. Use cl::boolOrDefault with -fast-isel
instead.
So now: -fast-isel or -fast-isel=true enable fast-isel, and
-fast-isel=false disables it. Fast-isel is also on by default
with -fast, and off by default otherwise.
llvm-svn: 57270
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 11 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/2008-05-21-CoalescerBug.ll | 2 |
2 files changed, 4 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index cd444552f7a..333b8ab9b7c 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -56,12 +56,9 @@ DisablePostRAScheduler("disable-post-RA-scheduler", // Enable or disable FastISel. Both options are needed, because // FastISel is enabled by default with -fast, and we wish to be // able to enable or disable fast-isel independently from -fast. -static cl::opt<bool> +static cl::opt<cl::boolOrDefault> EnableFastISelOption("fast-isel", cl::Hidden, cl::desc("Enable the experimental \"fast\" instruction selector")); -static cl::opt<bool> -DisableFastISelOption("disable-fast-isel", cl::Hidden, - cl::desc("Disable the experimental \"fast\" instruction selector")); FileModel::Model LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM, @@ -175,10 +172,8 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) { // Standard Lower-Level Passes. // Enable FastISel with -fast, but allow that to be overridden. - assert((!EnableFastISelOption || !DisableFastISelOption) && - "Both -fast-isel and -disable-fast-isel given!"); - if (EnableFastISelOption || - (Fast && !DisableFastISelOption)) + if (EnableFastISelOption == cl::BOU_TRUE || + (Fast && EnableFastISelOption != cl::BOU_FALSE)) EnableFastISel = true; // Ask the target for an isel. diff --git a/llvm/test/CodeGen/X86/2008-05-21-CoalescerBug.ll b/llvm/test/CodeGen/X86/2008-05-21-CoalescerBug.ll index 666c26157ac..bed218fb702 100644 --- a/llvm/test/CodeGen/X86/2008-05-21-CoalescerBug.ll +++ b/llvm/test/CodeGen/X86/2008-05-21-CoalescerBug.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc -march=x86 -fast -disable-fast-isel | grep mov | count 5 +; RUN: llvm-as < %s | llc -march=x86 -fast -fast-isel=false | grep mov | count 5 ; PR2343 %llvm.dbg.anchor.type = type { i32, i32 } |