diff options
| author | Manman Ren <manman.ren@gmail.com> | 2016-03-18 23:38:49 +0000 |
|---|---|---|
| committer | Manman Ren <manman.ren@gmail.com> | 2016-03-18 23:38:49 +0000 |
| commit | 2828c57b6f40a6d8a42ea6b72aedf39e58325764 (patch) | |
| tree | 1dee52f3327a31a0e905d7b528a1cfb4d85f7571 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
| parent | 5e5d046a4f677a5099d01666f1411f1c0df2a036 (diff) | |
| download | bcm5719-llvm-2828c57b6f40a6d8a42ea6b72aedf39e58325764.tar.gz bcm5719-llvm-2828c57b6f40a6d8a42ea6b72aedf39e58325764.zip | |
[CXX_FAST_TLS] fix issues with O0 on ARM, AArch64 and X86.
Since at O0, explicit copies via SplitCSR may not be removed even if
they are unnecessary, we choose not to use SplitCSR at O0.
llvm-svn: 263855
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 1a0c902d907..8c0ff29ad77 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -473,7 +473,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) { // We split CSR if the target supports it for the given function // and the function has only return exits. - if (TLI->supportSplitCSR(MF)) { + if (OptLevel != CodeGenOpt::None && TLI->supportSplitCSR(MF)) { FuncInfo->SplitCSR = true; // Collect all the return blocks. |

