[llvm] 83dc53d - [AArch64] reuse another map iterator. NFC
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 28 11:31:17 PDT 2020
Author: Jon Roelofs
Date: 2020-09-28T11:30:21-07:00
New Revision: 83dc53d30c273960c0e398b2fa7459c8ecf2b03f
URL: https://github.com/llvm/llvm-project/commit/83dc53d30c273960c0e398b2fa7459c8ecf2b03f
DIFF: https://github.com/llvm/llvm-project/commit/83dc53d30c273960c0e398b2fa7459c8ecf2b03f.diff
LOG: [AArch64] reuse another map iterator. NFC
Added:
Modified:
llvm/lib/Target/AArch64/AArch64SIMDInstrOpt.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64SIMDInstrOpt.cpp b/llvm/lib/Target/AArch64/AArch64SIMDInstrOpt.cpp
index 713aad3e3ff2..03b32967a212 100644
--- a/llvm/lib/Target/AArch64/AArch64SIMDInstrOpt.cpp
+++ b/llvm/lib/Target/AArch64/AArch64SIMDInstrOpt.cpp
@@ -291,8 +291,9 @@ bool AArch64SIMDInstrOpt::shouldExitEarly(MachineFunction *MF, Subpass SP) {
case Interleave:
std::string Subtarget =
std::string(SchedModel.getSubtargetInfo()->getCPU());
- if (InterlEarlyExit.find(Subtarget) != InterlEarlyExit.end())
- return InterlEarlyExit[Subtarget];
+ auto It = InterlEarlyExit.find(Subtarget);
+ if (It != InterlEarlyExit.end())
+ return It->second;
for (auto &I : IRT) {
OriginalMCID = &TII->get(I.OrigOpc);
More information about the llvm-commits
mailing list