aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-02-04 05:51:25 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-02-04 05:51:25 +0000
commit0aad7d274d6dfb0de1ebc00600cecf5e229b7c43 (patch)
tree2741ac91e954b727bd816385257fa571f612c282 /include
parent7e899cbb9127c02c58f6e774186a533b0d00681d (diff)
downloadexternal_llvm-0aad7d274d6dfb0de1ebc00600cecf5e229b7c43.zip
external_llvm-0aad7d274d6dfb0de1ebc00600cecf5e229b7c43.tar.gz
external_llvm-0aad7d274d6dfb0de1ebc00600cecf5e229b7c43.tar.bz2
Drop the REDEF_BY_EC VNInfo flag.
A live range that has an early clobber tied redef now looks like a normal tied redef, except the early clobber def uses the early clobber slot. This is enough to handle any strange interference problems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index 96f1548..a6008ab 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -43,9 +43,8 @@ namespace llvm {
private:
enum {
HAS_PHI_KILL = 1,
- REDEF_BY_EC = 1 << 1,
- IS_PHI_DEF = 1 << 2,
- IS_UNUSED = 1 << 3
+ IS_PHI_DEF = 1 << 1,
+ IS_UNUSED = 1 << 2
};
unsigned char flags;
@@ -95,17 +94,6 @@ namespace llvm {
flags &= ~HAS_PHI_KILL;
}
- /// Returns true if this value is re-defined by an early clobber somewhere
- /// during the live range.
- bool hasRedefByEC() const { return flags & REDEF_BY_EC; }
- /// Set the "redef by early clobber" flag on this value.
- void setHasRedefByEC(bool hasRedef) {
- if (hasRedef)
- flags |= REDEF_BY_EC;
- else
- flags &= ~REDEF_BY_EC;
- }
-
/// Returns true if this value is defined by a PHI instruction (or was,
/// PHI instrucions may have been eliminated).
bool isPHIDef() const { return flags & IS_PHI_DEF; }