Skip to content

Commit be6a5dc

Browse files
[Analysis] Avoid repeated hash lookups (NFC) (llvm#110453)
1 parent db9e1fb commit be6a5dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ReplayInlineAdvisor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ std::unique_ptr<InlineAdvice> ReplayInlineAdvisor::getAdviceImpl(CallBase &CB) {
114114
// Replay decision, if it has one
115115
auto Iter = InlineSitesFromRemarks.find(Combined);
116116
if (Iter != InlineSitesFromRemarks.end()) {
117-
if (InlineSitesFromRemarks[Combined]) {
117+
if (Iter->second) {
118118
LLVM_DEBUG(dbgs() << "Replay Inliner: Inlined " << Callee << " @ "
119119
<< CallSiteLoc << "\n");
120120
return std::make_unique<DefaultInlineAdvice>(

0 commit comments

Comments
 (0)