projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reapply r101364, which has been backed out in r101368
[oota-llvm.git]
/
lib
/
CodeGen
/
MachineRegisterInfo.cpp
diff --git
a/lib/CodeGen/MachineRegisterInfo.cpp
b/lib/CodeGen/MachineRegisterInfo.cpp
index 6c0b454b13b484a2d60317789d6c4f1374cbd8a4..850ade25da5c57084d570d285fdbb1c72de7773a 100644
(file)
--- a/
lib/CodeGen/MachineRegisterInfo.cpp
+++ b/
lib/CodeGen/MachineRegisterInfo.cpp
@@
-248,6
+248,11
@@
MachineRegisterInfo::EmitLiveInCopies(MachineBasicBlock *EntryMBB,
(void) Emitted;
}
}
(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
}
#ifndef NDEBUG