Commit 1b42be6
authored
[Utils] Avoid repeated hash lookups (NFC) (llvm#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.1 parent 8d333e1 commit 1b42be6
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7555 | 7555 | | |
7556 | 7556 | | |
7557 | 7557 | | |
7558 | | - | |
7559 | | - | |
| 7558 | + | |
| 7559 | + | |
7560 | 7560 | | |
7561 | | - | |
| 7561 | + | |
7562 | 7562 | | |
7563 | 7563 | | |
7564 | 7564 | | |
| |||
0 commit comments