[CSInfo][MIPS] Don't describe parameters loaded by sub/super reg copy
authorDjordje Todorovic <djordje.todorovic@syrmia.com>
Mon, 22 Jun 2020 07:01:59 +0000 (09:01 +0200)
committerDjordje Todorovic <djordje.todorovic@syrmia.com>
Mon, 22 Jun 2020 08:49:02 +0000 (10:49 +0200)
commit792786e34d8d881eb4d6b12275681a555cb9e245
tree026a374f56312cff354edfe583a0b537883172f2
parent028571d60843cb87e2637ef69ee09090d4526c62
[CSInfo][MIPS] Don't describe parameters loaded by sub/super reg copy

When describing parameter value loaded by a COPY instruction, consider
case where needed Reg value is a sub- or super- register of the COPY
instruction's destination register. Without this patch, compile process
will crash with the assertion "TargetInstrInfo::describeLoadedValue
can't describe super- or sub-regs for copy instructions".

Patch by Nikola Tesic

Differential revision: https://reviews.llvm.org/D82000
llvm/lib/Target/Mips/MipsInstrInfo.cpp
llvm/test/DebugInfo/MIR/Mips/dbg-call-site-copy-sub-reg.mir [new file with mode: 0644]