summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-07-27 21:11:14 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-07-27 21:11:14 +0000
commitb18d779b35909cd5b753871f8bf2ff4f6c17ace1 (patch)
tree85a03c2c0004297bbff4f7632346c67b04d7805c /include
parent3dfa38a5bf431ec78272bb06c47d7c28616d276a (diff)
downloadllvm-b18d779b35909cd5b753871f8bf2ff4f6c17ace1.tar.gz
llvm-b18d779b35909cd5b753871f8bf2ff4f6c17ace1.tar.bz2
llvm-b18d779b35909cd5b753871f8bf2ff4f6c17ace1.tar.xz
Eliminate the IS_PHI_DEF flag and VNInfo::setIsPHIDef().
A value number is a PHI def if and only if it begins at a block boundary. This can be derived from the def slot, a separate flag is not necessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index 3fe7c8d58c..b95272273b 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -43,8 +43,7 @@ namespace llvm {
private:
enum {
HAS_PHI_KILL = 1,
- IS_PHI_DEF = 1 << 1,
- IS_UNUSED = 1 << 2
+ IS_UNUSED = 1 << 1
};
unsigned char flags;
@@ -96,14 +95,9 @@ namespace llvm {
/// 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; }
- /// Set the "phi def" flag on this value.
- void setIsPHIDef(bool phiDef) {
- if (phiDef)
- flags |= IS_PHI_DEF;
- else
- flags &= ~IS_PHI_DEF;
- }
+ /// PHI-defs begin at a block boundary, all other defs begin at register or
+ /// EC slots.
+ bool isPHIDef() const { return def.isBlock(); }
/// Returns true if this value is unused.
bool isUnused() const { return flags & IS_UNUSED; }