register number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134309
91177308-0d34-0410-b5e6-
96231b3b80d8
VNInfo *VNI,
LiveRange *LR,
SmallVector<MachineInstr*, 8> &DupCopies) {
- return false; // To see if this fixes the i386 dragonegg buildbot miscompile.
// FIXME: This is very conservative. For example, we don't handle
// physical registers.
if (Src != OtherSrc)
return false;
+ // If the copies use two different value numbers of X, we cannot merge
+ // A and B.
+ if (SrcInt.FindLiveRangeContaining(Other->def)->valno !=
+ SrcInt.FindLiveRangeContaining(VNI->def)->valno)
+ return false;
+
DupCopies.push_back(MI);
return true;