mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
[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
This commit is contained in:
parent
d64010b1e6
commit
b581f0b286
@ -343,9 +343,12 @@ public:
|
||||
bool operator!=(const ValueIDNum &Other) const { return !(*this == Other); }
|
||||
|
||||
std::string asString(const std::string &mlocname) const {
|
||||
return Twine("bb ")
|
||||
.concat(Twine(BlockNo).concat(Twine(" inst ").concat(
|
||||
Twine(InstNo).concat(Twine(" loc ").concat(Twine(mlocname))))))
|
||||
return Twine("Value{bb: ")
|
||||
.concat(Twine(BlockNo).concat(
|
||||
Twine(", inst: ")
|
||||
.concat((InstNo ? Twine(InstNo) : Twine("live-in"))
|
||||
.concat(Twine(", loc: ").concat(Twine(mlocname)))
|
||||
.concat(Twine("}")))))
|
||||
.str();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user