From a971dbdde27fd4ff53dbebdd4aaf87826d081aa2 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 24 Apr 2008 09:06:33 +0000 Subject: - 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 --- include/llvm/CodeGen/MachineBasicBlock.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/llvm/CodeGen/MachineBasicBlock.h') 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::iterator livein_iterator; -- cgit v1.2.3-70-g09d2