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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
SGTM, sorry about that.
llvm/lib/Transforms/Scalar/Scalarizer.cpp | ||
---|---|---|
401–402 | This could use a comment. |
This could use a comment.