OSDN Git Service

[NFC] [TargetRegisterInfo] add one use check to lookThruCopyLike.
authorChen Zheng <czhengsz@cn.ibm.com>
Mon, 18 Jan 2021 00:56:42 +0000 (19:56 -0500)
committerChen Zheng <czhengsz@cn.ibm.com>
Mon, 18 Jan 2021 00:56:42 +0000 (19:56 -0500)
commit3bdf4507b66348ad78df4655a8e4f36c3fc10f3c
tree436aea9383bab9445288cdefbe63852ac1cfab32
parentf855751c1284c82c1c46b98f6d1b3ca2021d6cb9
[NFC] [TargetRegisterInfo] add one use check to lookThruCopyLike.

add one use check to lookThruCopyLike.

The root node is safe to be deleted if we are sure that every
definition in the copy chain only has one use.

Reviewed By: jsji

Differential Revision: https://reviews.llvm.org/D92069
llvm/include/llvm/CodeGen/TargetRegisterInfo.h
llvm/lib/CodeGen/TargetRegisterInfo.cpp