summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-07-29 15:57:49 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-07-29 15:57:49 +0000
commit9f154f601d60730a0e6fa92be7f173427f9c769a (patch)
tree28c9c1b03e5cabaa02f9333468fa900be27e41fb /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent77804bed859d4d8c5960e106c2d3aa640af3649c (diff)
downloadbcm5719-llvm-9f154f601d60730a0e6fa92be7f173427f9c769a.tar.gz
bcm5719-llvm-9f154f601d60730a0e6fa92be7f173427f9c769a.zip
Reverting r243386 because it has serious post-commit concerns that have not been addressed. Also reverts r243389, which relied on this commit.
llvm-svn: 243527
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index f60e6bdf2cf..5d3f7ebaed2 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -332,6 +332,11 @@ void MachineBasicBlock::removeLiveIn(unsigned Reg) {
LiveIns.erase(I);
}
+bool MachineBasicBlock::isLiveIn(unsigned Reg) const {
+ livein_iterator I = std::find(livein_begin(), livein_end(), Reg);
+ return I != livein_end();
+}
+
unsigned
MachineBasicBlock::addLiveIn(unsigned PhysReg, const TargetRegisterClass *RC) {
assert(getParent() && "MBB must be inserted in function");
OpenPOWER on IntegriCloud