projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15d014b
)
Minor cleanup, no functionality change for current targets
author
Chris Lattner
<sabre@nondot.org>
Tue, 10 Jan 2006 05:41:59 +0000
(
05:41
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 10 Jan 2006 05:41:59 +0000
(
05:41
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25173
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LiveIntervalAnalysis.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LiveIntervalAnalysis.cpp
b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 593bbdbad7560f5b6e17717d532edcc66825695a..d5160cdb2af5a2ebac5953b50991290ca05d0361 100644
(file)
--- a/
lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/
lib/CodeGen/LiveIntervalAnalysis.cpp
@@
-585,7
+585,8
@@
void LiveIntervals::handleRegisterDef(MachineBasicBlock *MBB,
handleVirtualRegisterDef(MBB, MI, getOrCreateInterval(reg));
else if (allocatableRegs_[reg]) {
unsigned SrcReg = 0, DestReg = 0;
- bool IsMove = tii_->isMoveInstr(*MI, SrcReg, DestReg);
+ if (!tii_->isMoveInstr(*MI, SrcReg, DestReg))
+ SrcReg = DestReg = 0;
handlePhysicalRegisterDef(MBB, MI, getOrCreateInterval(reg),
SrcReg, DestReg);