llvm.org GIT mirror llvm / 298bbe8
If remating a machine instr with virtual register operand, make sure the vr is avaliable at all uses regardless of whether it would be folded. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47526 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 12 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
679679 unsigned UseIdx = getInstructionIndex(UseMI);
680680 if (li.FindLiveRangeContaining(UseIdx)->valno != ValNo)
681681 continue;
682 if (!canFoldMemoryOperand(UseMI, li.reg) &&
683 !isValNoAvailableAt(ImpLi, MI, UseIdx))
682 if (!isValNoAvailableAt(ImpLi, MI, UseIdx))
684683 return false;
685684 }
686685 }