mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 03:47:20 +00:00
Preserve PHIDef bits in cloned values during splitting.
llvm-svn: 117405
This commit is contained in:
parent
7796146304
commit
0007e9a345
@ -321,6 +321,10 @@ VNInfo *LiveIntervalMap::defValue(const VNInfo *ParentVNI, SlotIndex Idx) {
|
||||
// Create a new value.
|
||||
VNInfo *VNI = li_->getNextValue(Idx, 0, lis_.getVNInfoAllocator());
|
||||
|
||||
// Preserve the PHIDef bit.
|
||||
if (ParentVNI->isPHIDef() && Idx == ParentVNI->def)
|
||||
VNI->setIsPHIDef(true);
|
||||
|
||||
// Use insert for lookup, so we can add missing values with a second lookup.
|
||||
std::pair<ValueMap::iterator,bool> InsP =
|
||||
valueMap_.insert(makeVV(ParentVNI, Idx == ParentVNI->def ? VNI : 0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user