Commit 99bda02
Without this change, the compiler fails to notice that `env_threads isa
Int` in the fall-through case, leading to a union-split with a branch
that is in fact unreachable:
```
43 ┄ %109 = φ (#41 => %105, #42 => %108)::Union{Nothing, Int64}
│ %110 = (%109 isa Int64)::Bool
└─── goto #45 if not %110
...
45 ─ %126 = π (%109, Nothing)
│ Base.convert(Int64, %126)::Union{}
└─── unreachable
```
After this change, the union-split is eliminated.
Co-authored-by: Jeff Bezanson <[email protected]>
1 parent e47fedd commit 99bda02
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
0 commit comments