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 | 54898938673d2a13ce31626ec34b2d4d314b2c81 (patch) | |
tree | cb6784071bfc3b10704032af0929077a5b7eb882 /include | |
parent | 23b10f5b64e594aa7c6b415805b563fed2a75874 (diff) | |
download | external_llvm-54898938673d2a13ce31626ec34b2d4d314b2c81.zip external_llvm-54898938673d2a13ce31626ec34b2d4d314b2c81.tar.gz external_llvm-54898938673d2a13ce31626ec34b2d4d314b2c81.tar.bz2 |
- 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 'include')
-rw-r--r-- | include/llvm/CodeGen/LiveInterval.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 0d5acb8..f050d47 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -156,6 +156,8 @@ namespace llvm { return reg & ~(1U << (sizeof(unsigned)*8-1)); } + bool hasAtLeastOneValue() const { return !valnos.empty(); } + bool containsOneValue() const { return valnos.size() == 1; } unsigned getNumValNums() const { return (unsigned)valnos.size(); } |