Commit 0cfea5b
authored
[BitcodeReader] Avoid quadratic complexity in intrinsic upgrade (#150032)
When materializing a function, we'd upgrade all calls to all upgraded
intrinsics. However, this would operate on all calls to the intrinsic
(including previously materialized ones), which leads to quadratic
complexity.
Instead, only upgrade the calls that are in the materialized function.
This fixes a compile-time regression introduced by #149310.1 parent b59aaf7 commit 0cfea5b
1 file changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7015 | 7015 | | |
7016 | 7016 | | |
7017 | 7017 | | |
7018 | | - | |
7019 | | - | |
7020 | | - | |
7021 | | - | |
7022 | | - | |
7023 | | - | |
7024 | | - | |
7025 | 7018 | | |
7026 | 7019 | | |
7027 | 7020 | | |
| |||
7037 | 7030 | | |
7038 | 7031 | | |
7039 | 7032 | | |
7040 | | - | |
| 7033 | + | |
7041 | 7034 | | |
7042 | 7035 | | |
7043 | 7036 | | |
| |||
7068 | 7061 | | |
7069 | 7062 | | |
7070 | 7063 | | |
7071 | | - | |
7072 | 7064 | | |
| 7065 | + | |
7073 | 7066 | | |
7074 | 7067 | | |
7075 | 7068 | | |
7076 | 7069 | | |
7077 | 7070 | | |
7078 | 7071 | | |
7079 | 7072 | | |
| 7073 | + | |
| 7074 | + | |
| 7075 | + | |
| 7076 | + | |
| 7077 | + | |
| 7078 | + | |
| 7079 | + | |
7080 | 7080 | | |
7081 | 7081 | | |
7082 | 7082 | | |
| |||
0 commit comments