diff options
author | Dan Gohman <gohman@apple.com> | 2008-09-13 17:58:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-09-13 17:58:21 +0000 |
commit | 38453eebdc6390c4050d592c4fdd96c395524217 (patch) | |
tree | e30cf636d85c99e45c65a42cccbdce20079450b9 /llvm/lib/CodeGen/RegAllocLocal.cpp | |
parent | 9ddb3145aef88368e38d0719ad7d6edeb9a3bab3 (diff) | |
download | bcm5719-llvm-38453eebdc6390c4050d592c4fdd96c395524217.tar.gz bcm5719-llvm-38453eebdc6390c4050d592c4fdd96c395524217.zip |
Remove isImm(), isReg(), and friends, in favor of
isImmediate(), isRegister(), and friends, to avoid confusion
about having two different names with the same meaning. I'm
not attached to the longer names, and would be ok with
changing to the shorter names if others prefer it.
llvm-svn: 56189
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLocal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLocal.cpp b/llvm/lib/CodeGen/RegAllocLocal.cpp index d66031776e3..0a20128632d 100644 --- a/llvm/lib/CodeGen/RegAllocLocal.cpp +++ b/llvm/lib/CodeGen/RegAllocLocal.cpp @@ -575,7 +575,7 @@ void RALocal::ComputeLocalLiveness(MachineBasicBlock& MBB) { // them for later. Also, we have to process these // _before_ processing the defs, since an instr // uses regs before it defs them. - if (MO.isReg() && MO.getReg() && MO.isUse()) + if (MO.isRegister() && MO.getReg() && MO.isUse()) LastUseDef[MO.getReg()] = std::make_pair(I, i); } @@ -584,7 +584,7 @@ void RALocal::ComputeLocalLiveness(MachineBasicBlock& MBB) { // Defs others than 2-addr redefs _do_ trigger flag changes: // - A def followed by a def is dead // - A use followed by a def is a kill - if (MO.isReg() && MO.getReg() && MO.isDef()) { + if (MO.isRegister() && MO.getReg() && MO.isDef()) { DenseMap<unsigned, std::pair<MachineInstr*, unsigned> >::iterator last = LastUseDef.find(MO.getReg()); if (last != LastUseDef.end()) { |