mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-18 06:38:41 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57270 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bde84d2fca
commit
eb0d6abee3
@ -56,12 +56,9 @@ DisablePostRAScheduler("disable-post-RA-scheduler",
|
|||||||
// Enable or disable FastISel. Both options are needed, because
|
// Enable or disable FastISel. Both options are needed, because
|
||||||
// FastISel is enabled by default with -fast, and we wish to be
|
// FastISel is enabled by default with -fast, and we wish to be
|
||||||
// able to enable or disable fast-isel independently from -fast.
|
// able to enable or disable fast-isel independently from -fast.
|
||||||
static cl::opt<bool>
|
static cl::opt<cl::boolOrDefault>
|
||||||
EnableFastISelOption("fast-isel", cl::Hidden,
|
EnableFastISelOption("fast-isel", cl::Hidden,
|
||||||
cl::desc("Enable the experimental \"fast\" instruction selector"));
|
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
|
FileModel::Model
|
||||||
LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
|
LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
|
||||||
@ -175,10 +172,8 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) {
|
|||||||
// Standard Lower-Level Passes.
|
// Standard Lower-Level Passes.
|
||||||
|
|
||||||
// Enable FastISel with -fast, but allow that to be overridden.
|
// Enable FastISel with -fast, but allow that to be overridden.
|
||||||
assert((!EnableFastISelOption || !DisableFastISelOption) &&
|
if (EnableFastISelOption == cl::BOU_TRUE ||
|
||||||
"Both -fast-isel and -disable-fast-isel given!");
|
(Fast && EnableFastISelOption != cl::BOU_FALSE))
|
||||||
if (EnableFastISelOption ||
|
|
||||||
(Fast && !DisableFastISelOption))
|
|
||||||
EnableFastISel = true;
|
EnableFastISel = true;
|
||||||
|
|
||||||
// Ask the target for an isel.
|
// Ask the target for an isel.
|
||||||
|
@ -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
|
; PR2343
|
||||||
|
|
||||||
%llvm.dbg.anchor.type = type { i32, i32 }
|
%llvm.dbg.anchor.type = type { i32, i32 }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user