diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-02-10 21:12:22 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-02-10 21:12:22 +0000 |
| commit | 1cbe4d0ad0888e50858cca83cf2a0d3083709513 (patch) | |
| tree | 24da2df5bf601e7788e45d0fb9acad917b7060c2 /lib/CodeGen/LiveIntervalAnalysis.cpp | |
| parent | 9d58a500fc1b13651eae0f0cc015ae0b02e14a13 (diff) | |
Do not use MachineOperand::isVirtualRegister either!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
| -rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 7b708147e6..caa9e2e391 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -115,7 +115,8 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) { for (int i = mi->getNumOperands() - 1; i >= 0; --i) { MachineOperand& mop = mi->getOperand(i); - if (mop.isVirtualRegister()) { + if (mop.isRegister() && + MRegisterInfo::isVirtualRegister(mop.getReg())) { unsigned reg = mop.getAllocatedRegNum(); Reg2IntervalMap::iterator r2iit = r2iMap_.find(reg); assert(r2iit != r2iMap_.end()); |
