mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-19 20:43:52 +00:00
Give a better assertion if we see a use before a def.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16135 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
790306852c
commit
2e58a41089
@ -82,6 +82,8 @@ void LiveVariables::MarkVirtRegAliveInBlock(VarInfo &VRInfo,
|
||||
|
||||
void LiveVariables::HandleVirtRegUse(VarInfo &VRInfo, MachineBasicBlock *MBB,
|
||||
MachineInstr *MI) {
|
||||
assert(VRInfo.DefInst && "Register use before def!");
|
||||
|
||||
// Check to see if this basic block is already a kill block...
|
||||
if (!VRInfo.Kills.empty() && VRInfo.Kills.back()->getParent() == MBB) {
|
||||
// Yes, this register is killed in this basic block already. Increase the
|
||||
|
Loading…
x
Reference in New Issue
Block a user