From: Evan Cheng Date: Sat, 23 Feb 2008 02:14:42 +0000 (+0000) Subject: If remating a machine instr with virtual register operand, make sure the vr is avalia... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=298bbe82cb390235f7b8ab4bd550feff909e0c3d;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index f1de4d184ef..a18f36afb7f 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -680,8 +680,7 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li, unsigned UseIdx = getInstructionIndex(UseMI); if (li.FindLiveRangeContaining(UseIdx)->valno != ValNo) continue; - if (!canFoldMemoryOperand(UseMI, li.reg) && - !isValNoAvailableAt(ImpLi, MI, UseIdx)) + if (!isValNoAvailableAt(ImpLi, MI, UseIdx)) return false; } }