diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-12-02 02:15:36 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-12-02 02:15:36 +0000 |
commit | bbe4105cd7c94e90ecc7de2be57c04b3d80bb267 (patch) | |
tree | ce57328d53b77c84d58bf322665cf67d0bb7031c /lib/CodeGen/VirtRegMap.cpp | |
parent | 221cd2f0813be675784b9825aee9f74f22026247 (diff) | |
download | external_llvm-bbe4105cd7c94e90ecc7de2be57c04b3d80bb267.zip external_llvm-bbe4105cd7c94e90ecc7de2be57c04b3d80bb267.tar.gz external_llvm-bbe4105cd7c94e90ecc7de2be57c04b3d80bb267.tar.bz2 |
Fix PR3124: overly strict assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | lib/CodeGen/VirtRegMap.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 7ce5347..dab0215 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -1760,8 +1760,10 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM) { SmallVector<unsigned, 2> KillRegs; InvalidateKills(MI, RegKills, KillOps, &KillRegs); if (MO.isDead() && !KillRegs.empty()) { - // Source register or an implicit super-register use is killed. - assert(KillRegs[0] == Dst || TRI->isSubRegister(KillRegs[0], Dst)); + // Source register or an implicit super/sub-register use is killed. + assert(KillRegs[0] == Dst || + TRI->isSubRegister(KillRegs[0], Dst) || + TRI->isSuperRegister(KillRegs[0], Dst)); // Last def is now dead. TransferDeadness(&MBB, Dist, Src, RegKills, KillOps); } |