Commit 53d3d1a
authored
[SLPVectorizer] Avoid two successive hash lookups on the same key (#107143)
This patch replaces the find-try_emplace sequence with just one call
to try_emplace, thereby avoiding two successive hash lookups on the
same key. I am not using the "inserted" boolean from try_emplace to
preserve the original behavior (that is, before PR 107123) that checks
to see if the value is nullptr or not.1 parent 98bde7f commit 53d3d1a
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11804 | 11804 | | |
11805 | 11805 | | |
11806 | 11806 | | |
11807 | | - | |
11808 | | - | |
11809 | | - | |
11810 | 11807 | | |
| 11808 | + | |
| 11809 | + | |
11811 | 11810 | | |
11812 | 11811 | | |
11813 | 11812 | | |
| |||
0 commit comments