[PATCH] D134551: [LegalizeTypes] Use structured bindings to replace std::tie in some cases.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 23 09:59:51 PDT 2022


craig.topper created this revision.
craig.topper added reviewers: frasercrmck, RKSimon, efriedma.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134551

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134551.462536.patch
Type: text/x-patch
Size: 24564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220923/27ec2684/attachment.bin>


More information about the llvm-commits mailing list