diff options
author | Puyan Lotfi <puyan@puyan.org> | 2015-07-28 06:38:41 +0000 |
---|---|---|
committer | Puyan Lotfi <puyan@puyan.org> | 2015-07-28 06:38:41 +0000 |
commit | 567001c2817622cf8ec6801a11ff9a7a76ad474e (patch) | |
tree | ff083408d03acc6e54ecd5fcbf43ce59884b3432 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | b58f8137c12abd8ab2cc3407ac835e38c1447a66 (diff) | |
download | bcm5719-llvm-567001c2817622cf8ec6801a11ff9a7a76ad474e.tar.gz bcm5719-llvm-567001c2817622cf8ec6801a11ff9a7a76ad474e.zip |
Changes for MachineBasicBlock to use SortedVector for LiveIns.
llvm-svn: 243389
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 5d3f7ebaed2..f60e6bdf2cf 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -332,11 +332,6 @@ 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"); |