HomePhabricator

[Scalarizer] Avoid changing name of non-instructions

Authored by bjope on Sep 14 2020, 1:53 PM.

Description

[Scalarizer] Avoid changing name of non-instructions

The "takeName" logic in ScalarizerVisitor::gather did not consider
that the value vector could refer to non-instructions, such as
global variables. This patch make sure that we avoid changing the
name of a value if it isn't an instruction.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D87685

Details

Committed
bjopeSep 15 2020, 5:15 AM
Reviewer
lebedev.ri
Differential Revision
D87685: [Scalarizer] Avoid changing name of non-instructions
Parents
rGaf3789a18811: [lldb] Improve qemu interop for aarch64
Branches
Unknown
Tags
Unknown