[all-commits] [llvm/llvm-project] 1b42be: [Utils] Avoid repeated hash lookups (NFC) (#131267)
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Fri Mar 14 07:22:38 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1b42be6fe8b850703e0f8e807234e3cb3332ebe0
https://github.com/llvm/llvm-project/commit/1b42be6fe8b850703e0f8e807234e3cb3332ebe0
Author: Kazu Hirata <kazu at google.com>
Date: 2025-03-14 (Fri, 14 Mar 2025)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Log Message:
-----------
[Utils] Avoid repeated hash lookups (NFC) (#131267)
It's safe to use try_emplace instead of operator[] here because:
- PhiPredIVs is empty at the beginning of the loop, and
- The elements we are inserting into PhiPredIVs are unique.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list