aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlex Bradbury <asb@igalia.com>2023-11-15 12:35:35 +0000
committerGitHub <noreply@github.com>2023-11-15 12:35:35 +0000
commit5b3eb1bc22d462a7c985614e4503bcf2c295341c (patch)
tree880d8c33200ba851f87ba04f98be35d195cf0475 /flang/lib/Frontend/CompilerInvocation.cpp
parentafdc0c5c96a776be16c151c5622ea5c348124f20 (diff)
downloadllvm-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