summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-04-27 17:36:47 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-04-27 17:36:47 +0000
commit0f85bd368c2e5529dc575aa34235990ebd57b6e9 (patch)
tree5552014f5b1ea2e327c09b8c3daf202193a3f166 /llvm/lib
parenta630ce5fff1f97f295c456c70a33348344481ec2 (diff)
downloadbcm5719-llvm-0f85bd368c2e5529dc575aa34235990ebd57b6e9.tar.gz
bcm5719-llvm-0f85bd368c2e5529dc575aa34235990ebd57b6e9.zip
Fix PR4056. It's possible a physical register def is dead if its implicit use is deleted by two-address pass.
llvm-svn: 70213
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 6691c2edeee..7ef6abc4b45 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -627,8 +627,8 @@ void LiveIntervals::handlePhysicalRegisterDef(MachineBasicBlock *MBB,
// The only case we should have a dead physreg here without a killing or
// instruction where we know it's dead is if it is live-in to the function
- // and never used.
- assert(!CopyMI && "physreg was not killed in defining block!");
+ // and never used. Another possible case is the implicit use of the
+ // physical register has been deleted by two-address pass.
end = start + 1;
exit:
OpenPOWER on IntegriCloud