diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-04-27 17:36:47 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-04-27 17:36:47 +0000 |
commit | 5431d9ca8b642dcbc0f5cb05ac10782a7b17ff8b (patch) | |
tree | 6e7db4ba66bab69bb8ce8dc774a54618d21f5563 /lib | |
parent | a6458fede5fee9d0f761249c48f537496f7b5356 (diff) | |
download | external_llvm-5431d9ca8b642dcbc0f5cb05ac10782a7b17ff8b.zip external_llvm-5431d9ca8b642dcbc0f5cb05ac10782a7b17ff8b.tar.gz external_llvm-5431d9ca8b642dcbc0f5cb05ac10782a7b17ff8b.tar.bz2 |
Fix PR4056. It's possible a physical register def is dead if its implicit use is deleted by two-address pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 6691c2e..7ef6abc 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/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: |