summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-02-23 02:14:42 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-02-23 02:14:42 +0000
commit379682b0e51c21d6ebb364f9d5f0f0b4008a07e8 (patch)
tree8ed77fb16c1ef46b2093d293d4a5e3ba98988e5c /llvm/lib
parent174ef9a0bbdcab0dbd53b7c891d62b1fccf9a187 (diff)
downloadbcm5719-llvm-379682b0e51c21d6ebb364f9d5f0f0b4008a07e8.tar.gz
bcm5719-llvm-379682b0e51c21d6ebb364f9d5f0f0b4008a07e8.zip
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.
llvm-svn: 47526
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index f1de4d184ef..a18f36afb7f 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/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;
}
}
OpenPOWER on IntegriCloud