[llvm] [ARM] Avoid repeated hash lookups (NFC) (PR #109569)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 22 00:39:25 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-arm
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/109569.diff
1 Files Affected:
- (modified) llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp (+1-1)
``````````diff
diff --git a/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
index e42623cb385637..b042ee69edd26c 100644
--- a/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
@@ -3289,7 +3289,7 @@ bool ARMPreAllocLoadStoreOpt::DistributeIncrements() {
continue;
Register Base = MI.getOperand(BaseOp).getReg();
- if (!Base.isVirtual() || Visited.count(Base))
+ if (!Base.isVirtual())
continue;
Visited.insert(Base);
``````````
</details>
https://github.com/llvm/llvm-project/pull/109569
More information about the llvm-commits
mailing list