diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-06-23 21:03:19 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-06-23 21:03:19 +0000 |
commit | 922e5f6ad546c1636371b3815b9915429e32cada (patch) | |
tree | 4907ac39f8d6716842d4c2b6fdab0ad1d9ef12b1 /lib/CodeGen/LiveInterval.cpp | |
parent | 1f1e088eb6e23ea31c5aa9872fa425f7e3e070d9 (diff) | |
download | external_llvm-922e5f6ad546c1636371b3815b9915429e32cada.tar.gz external_llvm-922e5f6ad546c1636371b3815b9915429e32cada.tar.bz2 external_llvm-922e5f6ad546c1636371b3815b9915429e32cada.zip |
Instead of adding an isSS field to LiveInterval to denote stack slot. Use top bit of 'reg' instead. If the top bit is set, than the LiveInterval represents a stack slot live interval.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index 24081b99c0..0f5de9257a 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/lib/CodeGen/LiveInterval.cpp @@ -678,8 +678,8 @@ void LiveRange::dump() const { void LiveInterval::print(std::ostream &OS, const TargetRegisterInfo *TRI) const { - if (isSS) - OS << "SS#" << reg; + if (isStackSlot()) + OS << "SS#" << getStackSlotIndex(); else if (TRI && TargetRegisterInfo::isPhysicalRegister(reg)) OS << TRI->getName(reg); else |