diff options
author | Alex Bradbury <asb@igalia.com> | 2023-11-15 12:35:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-15 12:35:35 +0000 |
commit | 5b3eb1bc22d462a7c985614e4503bcf2c295341c (patch) | |
tree | 880d8c33200ba851f87ba04f98be35d195cf0475 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | afdc0c5c96a776be16c151c5622ea5c348124f20 (diff) | |
download | llvm-5b3eb1bc22d462a7c985614e4503bcf2c295341c.zip llvm-5b3eb1bc22d462a7c985614e4503bcf2c295341c.tar.gz llvm-5b3eb1bc22d462a7c985614e4503bcf2c295341c.tar.bz2 |
[ARM][X86][NFC] Use lambda to avoid duplicate switches in areLoadsFromSameBasePtr (#72376)
Both the Arm and X86 implementations of areLoadsFromSameBasePtr use a
switch over the machine opcode, and repeat the same logic for both
SDNode operands. We can avoid the duplicated logic (especially lengthy
in the X86 case) by just using a lambda. This could obviously be a
candidate for moving out to a separate helper function if there were
other users, but I've made the minimal change in this patch.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions