diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-07-27 21:11:14 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-07-27 21:11:14 +0000 |
| commit | 97e14e02f11a73c2705ac0cd8388b77fed59fc33 (patch) | |
| tree | 70b9fd4595150fd07f14338dc6fec8fe4c63e704 /llvm/lib/CodeGen/SplitKit.cpp | |
| parent | 4021a7bf2582ba6b51d5d107feb3a809cc33d81d (diff) | |
| download | bcm5719-llvm-97e14e02f11a73c2705ac0cd8388b77fed59fc33.tar.gz bcm5719-llvm-97e14e02f11a73c2705ac0cd8388b77fed59fc33.zip | |
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.
llvm-svn: 160893
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SplitKit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index 9a751c13b52..98ed2cf12fc 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp @@ -1047,8 +1047,7 @@ void SplitEditor::finish(SmallVectorImpl<unsigned> *LRMap) { if (ParentVNI->isUnused()) continue; unsigned RegIdx = RegAssign.lookup(ParentVNI->def); - VNInfo *VNI = defValue(RegIdx, ParentVNI, ParentVNI->def); - VNI->setIsPHIDef(ParentVNI->isPHIDef()); + defValue(RegIdx, ParentVNI, ParentVNI->def); // Force rematted values to be recomputed everywhere. // The new live ranges may be truncated. |

