diff options
author | Scott Linder <Scott.Linder@amd.com> | 2023-07-20 19:37:49 +0000 |
---|---|---|
committer | Scott Linder <Scott.Linder@amd.com> | 2023-09-11 17:32:00 +0000 |
commit | 43331461954939032a03621998c30ac90299ad40 (patch) | |
tree | 733fdc7c3d790dcf618ea5edc5ac86e2b298e357 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 35e621f9ae65009c57b8e3e3c1aac7ba30b28d9a (diff) | |
download | llvm-43331461954939032a03621998c30ac90299ad40.zip llvm-43331461954939032a03621998c30ac90299ad40.tar.gz llvm-43331461954939032a03621998c30ac90299ad40.tar.bz2 |
[NFC][AsmPrinter] Use std::visit in constructVariableDIEImpl
This potentially has a slightly positive performance impact, as
std::visit can be implemented as a `switch`-like jump rather than
a series of `if`s.
More importantly, the reader can be confident is no overlap between the
cases.
Differential Revision: https://reviews.llvm.org/D158678
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions