diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-02-23 02:14:42 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-23 02:14:42 +0000 |
commit | 298bbe82cb390235f7b8ab4bd550feff909e0c3d (patch) | |
tree | f04e593caec27f8d6cff3b5196c60b154039c170 /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 18924f11c13770217130c95088fc52b263a1276e (diff) |
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
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index f1de4d184e..a18f36afb7 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; } } |