diff options
| author | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-11-30 21:56:16 +0000 |
|---|---|---|
| committer | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-11-30 21:56:16 +0000 |
| commit | a2550a6da39ef26dc81e249a28572da8f0823b05 (patch) | |
| tree | 3f0f9ee84195441e3a3cbc1f8b753d29807d6068 /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
| parent | eb9c7056f02abe6c7984ca32c6c7938c2b01bc14 (diff) | |
| download | bcm5719-llvm-a2550a6da39ef26dc81e249a28572da8f0823b05.tar.gz bcm5719-llvm-a2550a6da39ef26dc81e249a28572da8f0823b05.zip | |
Have 'optnone' respect the -fast-isel=false option.
This is primarily useful for debugging optnone v. ISel issues.
Differential Revision: http://reviews.llvm.org/D14792
llvm-svn: 254335
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 5b8c8258b28..da24cb17918 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -125,9 +125,10 @@ addPassesToGenerateCode(LLVMTargetMachine *TM, PassManagerBase &PM, PM.add(new MachineFunctionAnalysis(*TM, MFInitializer)); // Enable FastISel with -fast, but allow that to be overridden. + TM->setO0WantsFastISel(EnableFastISelOption != cl::BOU_FALSE); if (EnableFastISelOption == cl::BOU_TRUE || (TM->getOptLevel() == CodeGenOpt::None && - EnableFastISelOption != cl::BOU_FALSE)) + TM->getO0WantsFastISel())) TM->setFastISel(true); // Ask the target for an isel. |

