summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit9f565e19c5b99881ebef47e6aab2f7ea96544991 (patch)
treec03c75cc0c2d4a7643845bd17baf3b100e08a0c0 /llvm/include
parent06d6a5363b8c3996a35a516f37d48c0ce3ca3606 (diff)
downloadbcm5719-llvm-9f565e19c5b99881ebef47e6aab2f7ea96544991.tar.gz
bcm5719-llvm-9f565e19c5b99881ebef47e6aab2f7ea96544991.zip
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. llvm-svn: 161255
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/LiveInterval.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/llvm/include/llvm/CodeGen/LiveInterval.h b/llvm/include/llvm/CodeGen/LiveInterval.h
index b95272273b1..8e31792f014 100644
--- a/llvm/include/llvm/CodeGen/LiveInterval.h
+++ b/llvm/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
OpenPOWER on IntegriCloud