Skip to content

Commit

Permalink
[ARM] Avoid repeated hash lookups (NFC) (#109569)
Browse files Browse the repository at this point in the history
kazutakahirata authored Sep 22, 2024

Unverified

This user has not yet uploaded their public signing key.
1 parent 5b9206d commit 9e53574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 9e53574

Please sign in to comment.