[NFC][IntrRefLDV] Improve the Value printing
authorDjordje Todorovic <djordje.todorovic@syrmia.com>
Wed, 28 Oct 2020 14:18:14 +0000 (07:18 -0700)
committerDjordje Todorovic <djtodoro@cisco.com>
Wed, 28 Oct 2020 14:39:08 +0000 (07:39 -0700)
commit6384378582b429ff86ea10a7e48b4ab2001b1e4b
treec72b24e5499438d57f31f5767ad10051ae18a673
parent5d02ca49a294848b533adf7dc1d1275d125ef587
[NFC][IntrRefLDV] Improve the Value printing

Basically, this just improves the dump of the Value stored within a location.

If the defining instruction number is zero, it means it is "live-in".

Before the patch:

ESI --> bb 0 inst 0 loc ESI
After:

ESI --> Value{bb: 0, inst: live-in, loc: ESI}
This is an NFC.

Differential Revision: https://reviews.llvm.org/D90309
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp