diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-04-24 09:06:33 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-04-24 09:06:33 +0000 |
commit | a971dbdde27fd4ff53dbebdd4aaf87826d081aa2 (patch) | |
tree | 8bbe06c0e7425e9b42ca4352237425ae3a795b65 /include | |
parent | 173405599993582e88b9a4fbd73e5675c2117173 (diff) | |
download | llvm-a971dbdde27fd4ff53dbebdd4aaf87826d081aa2.tar.gz llvm-a971dbdde27fd4ff53dbebdd4aaf87826d081aa2.tar.bz2 llvm-a971dbdde27fd4ff53dbebdd4aaf87826d081aa2.tar.xz |
- Check if a register is livein before removing it. It may have already been removed.
- Do not iterate over SmallPtrSet, the order of iteration is not deterministic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 66de06dcaf..4ce695c1f3 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -176,6 +176,10 @@ public: /// void removeLiveIn(unsigned Reg); + /// isLiveIn - Return true if the specified register is in the live in set. + /// + bool isLiveIn(unsigned Reg) const; + // Iteration support for live in sets. These sets are kept in sorted // order by their register number. typedef std::vector<unsigned>::iterator livein_iterator; |