diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-14 17:05:00 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-14 17:05:00 +0000 |
commit | b13033f61c897224a0be2784faa721ff294c5254 (patch) | |
tree | 450ee1332622170c53b1d3b10d3ac594fd604cc1 /lib/CodeGen/MachineRegisterInfo.cpp | |
parent | c0fb65da040668df543db514f05e4be571edf700 (diff) |
Move the code for initialing the entry block livein set out of
SelectionDAGISel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101258 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineRegisterInfo.cpp')
-rw-r--r-- | lib/CodeGen/MachineRegisterInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineRegisterInfo.cpp b/lib/CodeGen/MachineRegisterInfo.cpp index 6c0b454b13..850ade25da 100644 --- a/lib/CodeGen/MachineRegisterInfo.cpp +++ b/lib/CodeGen/MachineRegisterInfo.cpp @@ -248,6 +248,11 @@ MachineRegisterInfo::EmitLiveInCopies(MachineBasicBlock *EntryMBB, (void) Emitted; } } + + // Add function live-ins to entry block live-in set. + for (MachineRegisterInfo::livein_iterator I = livein_begin(), + E = livein_end(); I != E; ++I) + EntryMBB->addLiveIn(I->first); } #ifndef NDEBUG |