llvm.org GIT mirror llvm / 801abe6
Add a useful accessor git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19209 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
124124 return RegistersKilled.equal_range(MI);
125125 }
126126
127 /// KillsRegister - Return true if the specified instruction kills the
128 /// specified register.
129 bool KillsRegister(MachineInstr *MI, unsigned Reg) {
130 std::pair KIP = killed_range(MI);
131 for (; KIP.first != KIP.second; ++KIP.first)
132 if (KIP.first->second == Reg)
133 return true;
134 return false;
135 }
136
127137 killed_iterator dead_begin(MachineInstr *MI) {
128138 return RegistersDead.lower_bound(MI);
129139 }