mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +00:00
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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user