summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
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 /lib/CodeGen/LiveIntervalAnalysis.cpp
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 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index bc0ec157f6..c58b8d778c 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -290,7 +290,6 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock *mbb,
assert(getInstructionFromIndex(Start) == 0 &&
"PHI def index points at actual instruction.");
ValNo = interval.getNextValue(Start, VNInfoAllocator);
- ValNo->setIsPHIDef(true);
}
LiveRange LR(Start, killIdx, ValNo);
interval.addRange(LR);