diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-30 23:10:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-30 23:10:15 +0000 |
commit | 6017d48252df62d121344138c5ba9241f7bd73b8 (patch) | |
tree | e0a02ef069161c19c6e91b8cdca0640b53d29db9 /lib/CodeGen/StrongPHIElimination.cpp | |
parent | 418136d928417bec8b188e49205734720828151e (diff) | |
download | external_llvm-6017d48252df62d121344138c5ba9241f7bd73b8.zip external_llvm-6017d48252df62d121344138c5ba9241f7bd73b8.tar.gz external_llvm-6017d48252df62d121344138c5ba9241f7bd73b8.tar.bz2 |
Add new shorter predicates for testing machine operands for various types:
e.g. MO.isMBB() instead of MO.isMachineBasicBlock(). I don't plan on
switching everything over, so new clients should just start using the
shorter names.
Remove old long accessors, switching everything over to use the short
accessor: getMachineBasicBlock() -> getMBB(),
getConstantPoolIndex() -> getIndex(), setMachineBasicBlock -> setMBB(), etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StrongPHIElimination.cpp')
-rw-r--r-- | lib/CodeGen/StrongPHIElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index 4b5c123..d736084 100644 --- a/lib/CodeGen/StrongPHIElimination.cpp +++ b/lib/CodeGen/StrongPHIElimination.cpp @@ -385,7 +385,7 @@ void StrongPHIElimination::processBlock(MachineBasicBlock* MBB) { UnionedBlocks.count(SrcInfo.DefInst->getParent())) { // add a copy from a_i to p in Waiting[From[a_i]] - MachineBasicBlock* From = P->getOperand(i).getMachineBasicBlock(); + MachineBasicBlock* From = P->getOperand(i).getMBB(); Waiting[From].insert(std::make_pair(SrcReg, DestReg)); UsedByAnother.insert(SrcReg); } else { |