[llvm-commits] [llvm] r55762 - /llvm/trunk/lib/CodeGen/VirtRegMap.cpp
Evan Cheng
evan.cheng at apple.com
Wed Sep 3 22:43:55 PDT 2008
Author: evancheng
Date: Thu Sep 4 00:43:55 2008
New Revision: 55762
URL: http://llvm.org/viewvc/llvm-project?rev=55762&view=rev
Log:
Fix an overly strict assertion. Source register of a copy may not be killed, it may be killed by an implicit super-register use.
Modified:
llvm/trunk/lib/CodeGen/VirtRegMap.cpp
Modified: llvm/trunk/lib/CodeGen/VirtRegMap.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/VirtRegMap.cpp?rev=55762&r1=55761&r2=55762&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/VirtRegMap.cpp (original)
+++ llvm/trunk/lib/CodeGen/VirtRegMap.cpp Thu Sep 4 00:43:55 2008
@@ -1730,7 +1730,8 @@
SmallVector<unsigned, 2> KillRegs;
InvalidateKills(MI, RegKills, KillOps, &KillRegs);
if (MO.isDead() && !KillRegs.empty()) {
- assert(KillRegs[0] == Dst);
+ // Source register or an implicit super-register use is killed.
+ assert(KillRegs[0] == Dst || TRI->isSubRegister(KillRegs[0], Dst));
// Last def is now dead.
TransferDeadness(&MBB, Dist, Src, RegKills, KillOps);
}
More information about the llvm-commits
mailing list