This simplies code where we declared two variables and immediately tied them.
I've focused on the most common case of splitting into Lo and Hi
SDValues or EVTs when splitting vectors.
Paths
| Differential D134551
[LegalizeTypes] Use structured bindings to replace std::tie in some cases. Needs ReviewPublic Authored by craig.topper on Sep 23 2022, 9:59 AM.
Details
Summary This simplies code where we declared two variables and immediately tied them. I've focused on the most common case of splitting into Lo and Hi
Diff Detail
Event TimelineComment Actions I've no objections although I don't know how this matches with the coding standard regarding auto (which was written prior to c++17 in the codebase)? Ideally we'd mention structured bindings in the section on use of auto.
Revision Contents
Diff 462536 llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
|
clang-format not found in user’s local PATH; not linting file.