diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-10 20:41:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-10 20:41:10 +0000 |
commit | 3d878d80d67452865e286069ceefe918c0f65acb (patch) | |
tree | 5bbfab6b3cbe7856e013c1a394b9af132a676a34 /lib/CodeGen/RegAllocLocal.cpp | |
parent | bd0485034c3c92cd1e5250d60ccddba6587cb8ee (diff) | |
download | external_llvm-3d878d80d67452865e286069ceefe918c0f65acb.zip external_llvm-3d878d80d67452865e286069ceefe918c0f65acb.tar.gz external_llvm-3d878d80d67452865e286069ceefe918c0f65acb.tar.bz2 |
Eliminate users of MachineOperand::isPhysicalRegister
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11278 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLocal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp index b9c758c..23ec845 100644 --- a/lib/CodeGen/RegAllocLocal.cpp +++ b/lib/CodeGen/RegAllocLocal.cpp @@ -556,8 +556,8 @@ void RA::AllocateBasicBlock(MachineBasicBlock &MBB) { // Loop over all of the operands of the instruction, spilling registers that // are defined, and marking explicit destinations in the PhysRegsUsed map. for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) - if (MI->getOperand(i).isDef() && - MI->getOperand(i).isPhysicalRegister()) { + if (MI->getOperand(i).isDef() && MI->getOperand(i).isRegister() && + MRegisterInfo::isPhysicalRegister(MI->getOperand(i).getReg())) { unsigned Reg = MI->getOperand(i).getAllocatedRegNum(); spillPhysReg(MBB, I, Reg, true); // Spill any existing value in the reg PhysRegsUsed[Reg] = 0; // It is free and reserved now |