Commit bfa0708
authored
[mono][interp] Disable inlining of methods that always throw (#122587)
When inlining, we create a placeholder exit_bb that is branched to
whenever the inlined method returns. When this bblock was not reachable,
it was leading to some inconsistent CFG state. This is relatively easy
to fix but, if exit_bb is dead, it means that the method is always
throwing an exception. We shouldn't bother inlining such methods in the
first place, since they are not part of hot code paths.
Fixes #1225291 parent feea419 commit bfa0708
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8888 | 8888 | | |
8889 | 8889 | | |
8890 | 8890 | | |
8891 | | - | |
8892 | | - | |
| 8891 | + | |
| 8892 | + | |
8893 | 8893 | | |
8894 | | - | |
| 8894 | + | |
8895 | 8895 | | |
8896 | 8896 | | |
8897 | 8897 | | |
| |||
0 commit comments