diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-10-29 08:39:34 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-10-29 08:39:34 +0000 |
commit | 29f36f5d687460958f6f00f34e859f868e7f1f03 (patch) | |
tree | cb6784071bfc3b10704032af0929077a5b7eb882 /lib/CodeGen/RegAllocLinearScan.cpp | |
parent | f8b23a3dfdf76a2c1d6d4db8a4408e882d610f56 (diff) | |
download | external_llvm-29f36f5d687460958f6f00f34e859f868e7f1f03.tar.gz external_llvm-29f36f5d687460958f6f00f34e859f868e7f1f03.tar.bz2 external_llvm-29f36f5d687460958f6f00f34e859f868e7f1f03.zip |
- More pre-split fixes: spill slot live interval computation bug; restore point bug.
- If a def is spilt, remember its spill index to allow its reuse.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLinearScan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index 8020aa152e..919b94c557 100644 --- a/lib/CodeGen/RegAllocLinearScan.cpp +++ b/lib/CodeGen/RegAllocLinearScan.cpp @@ -550,7 +550,7 @@ static void addStackInterval(LiveInterval *cur, LiveStacks *ls_, SI.weight += Weight; VNInfo *VNI; - if (SI.getNumValNums()) + if (SI.hasAtLeastOneValue()) VNI = SI.getValNumInfo(0); else VNI = SI.getNextValue(~0U, 0, ls_->getVNInfoAllocator()); |