[llvm-commits] [llvm] r68956 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Dan Gohman
gohman at apple.com
Mon Apr 13 08:22:30 PDT 2009
Author: djg
Date: Mon Apr 13 10:22:29 2009
New Revision: 68956
URL: http://llvm.org/viewvc/llvm-project?rev=68956&view=rev
Log:
Don't abort on an aliasing physical register that does not have
a live interval. This is needed for some upcoming subreg changes.
Modified:
llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=68956&r1=68955&r2=68956&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Mon Apr 13 10:22:29 2009
@@ -2235,7 +2235,7 @@
// If there are registers which alias PhysReg, but which are not a
// sub-register of the chosen representative super register. Assert
// since we can't handle it yet.
- assert(*AS == SpillReg || !allocatableRegs_[*AS] ||
+ assert(*AS == SpillReg || !allocatableRegs_[*AS] || !hasInterval(*AS) ||
tri_->isSuperRegister(*AS, SpillReg));
bool Cut = false;
More information about the llvm-commits
mailing list