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
Unit Tests
Unit Tests
Event Timeline
Comment Actions
SGTM, sorry about that.
llvm/lib/Transforms/Scalar/Scalarizer.cpp | ||
---|---|---|
401 | This could use a comment. |
clang-format not found in user's PATH; not linting file.