aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-03 20:19:44 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-03 20:19:44 +0000
commitbf60aa9db5953dd99c561dfa9323b1e3293a5a85 (patch)
treee6815ef170b7b60b669eafaa489e14bb5ef7590b /include
parent0ab7103e06ee1da7bde5b196a68be77ab49a005d (diff)
downloadexternal_llvm-bf60aa9db5953dd99c561dfa9323b1e3293a5a85.zip
external_llvm-bf60aa9db5953dd99c561dfa9323b1e3293a5a85.tar.gz
external_llvm-bf60aa9db5953dd99c561dfa9323b1e3293a5a85.tar.bz2
Eliminate the VNInfo::hasPHIKill() flag.
The only real user of the flag was removeCopyByCommutingDef(), and it has been switched to LiveIntervals::hasPHIKill(). All the code changed by this patch was only concerned with computing and propagating the flag. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index b952722..8e31792 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -42,8 +42,7 @@ namespace llvm {
class VNInfo {
private:
enum {
- HAS_PHI_KILL = 1,
- IS_UNUSED = 1 << 1
+ IS_UNUSED = 1
};
unsigned char flags;
@@ -82,17 +81,6 @@ namespace llvm {
flags = (flags | VNI->flags) & ~IS_UNUSED;
}
- /// Returns true if one or more kills are PHI nodes.
- /// Obsolete, do not use!
- bool hasPHIKill() const { return flags & HAS_PHI_KILL; }
- /// Set the PHI kill flag on this value.
- void setHasPHIKill(bool hasKill) {
- if (hasKill)
- flags |= HAS_PHI_KILL;
- else
- flags &= ~HAS_PHI_KILL;
- }
-
/// Returns true if this value is defined by a PHI instruction (or was,
/// PHI instrucions may have been eliminated).
/// PHI-defs begin at a block boundary, all other defs begin at register or