diff options
| author | Paul Robinson <paul_robinson@playstation.sony.com> | 2013-11-22 19:11:24 +0000 |
|---|---|---|
| committer | Paul Robinson <paul_robinson@playstation.sony.com> | 2013-11-22 19:11:24 +0000 |
| commit | d89125a5d8827b3f427a14ad5fe7e190b7cee3cd (patch) | |
| tree | 4abd751001fe27be9bca4261e1988dc82ca0bed5 /llvm/lib/Target | |
| parent | 059e800fdaf414725a3777c4a16fcb71c38bddf7 (diff) | |
| download | bcm5719-llvm-d89125a5d8827b3f427a14ad5fe7e190b7cee3cd.tar.gz bcm5719-llvm-d89125a5d8827b3f427a14ad5fe7e190b7cee3cd.zip | |
Teach ISel not to optimize 'optnone' functions (revised).
Improvements over r195317:
- Set/restore EnableFastISel flag instead of just running FastISel within
SelectAllBasicBlocks; the flag is checked in various places, and
FastISel won't run properly if those places don't do the right thing.
- Test looks for normal ISel versus FastISel behavior, and not
something more subtle that doesn't work everywhere.
Based on work by Andrea Di Biagio.
llvm-svn: 195491
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index b367287b530..9ba78bce7f9 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -164,6 +164,11 @@ CodeGenOpt::Level TargetMachine::getOptLevel() const { return CodeGenInfo->getOptLevel(); } +void TargetMachine::setOptLevel(CodeGenOpt::Level Level) const { + if (CodeGenInfo) + CodeGenInfo->setOptLevel(Level); +} + bool TargetMachine::getAsmVerbosityDefault() { return AsmVerbosityDefault; } |

