diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-02-13 23:47:16 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-02-13 23:47:16 +0000 |
| commit | 05d6f2ff1e331027ac2833721b77bb9392ffef5a (patch) | |
| tree | 409ded287df709b85b3aabc15e9873fdb0279c48 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
| parent | 05f7380b337030e639b950dbb588c167f478bd3c (diff) | |
| download | bcm5719-llvm-05d6f2ff1e331027ac2833721b77bb9392ffef5a.tar.gz bcm5719-llvm-05d6f2ff1e331027ac2833721b77bb9392ffef5a.zip | |
Don't reserve the R0 and R1 registers here. We don't use these registers, and
marking them as "live-in" into a BB ruins some invariants that the back-end
tries to maintain.
llvm-svn: 150437
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 091d223c31a..1cf4decd43c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -1851,6 +1851,12 @@ void SelectionDAGBuilder::visitLandingPad(const LandingPadInst &LP) { MachineModuleInfo &MMI = DAG.getMachineFunction().getMMI(); AddLandingPadInfo(LP, MMI, MBB); + // If there aren't registers to copy the values into (e.g., during SjLj + // exceptions), then don't bother to create these DAG nodes. + if (TLI.getExceptionAddressRegister() == 0 && + TLI.getExceptionSelectorRegister() == 0) + return; + SmallVector<EVT, 2> ValueVTs; ComputeValueVTs(TLI, LP.getType(), ValueVTs); |

