OSDN Git Service

[NFC][LICM] Minor improvements to debug output
authorQuentin Colombet <qcolombet@apple.com>
Tue, 12 Jan 2021 00:31:40 +0000 (16:31 -0800)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 12 Jan 2021 02:02:49 +0000 (18:02 -0800)
commit905623b64df0c865d4dddc4a60aff9751fbaa0e0
treedafd67cee8d1ef2e38a368aa93edcb89316f43ef
parent9f8b25769efa409ffc3b85f1c8043d2fcb4f185e
[NFC][LICM] Minor improvements to debug output

Added a utility function in Value class to print block name and use
block labels for unnamed blocks.
Changed LICM to call this function in its debug output.

Patch by Xiaoqing Wu <xiaoqing_wu@apple.com>

Differential Revision: https://reviews.llvm.org/D93577
llvm/include/llvm/IR/Value.h
llvm/lib/IR/Value.cpp
llvm/lib/Transforms/Scalar/LICM.cpp