Commit 88a643d
committed
Strict type-class validation in instruction_has_valid_types
Remove TypeClass::Other escape that allowed ops like IAdd/IMul to
pass validation when their result type was uncategorized. Now ops
requiring a specific type class (Int, Float, Bool) must match
exactly, causing the optimizer to fall back to the original valid
instruction when a rewrite produces a type mismatch.1 parent 2047cef commit 88a643d
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2390 | 2390 | | |
2391 | 2391 | | |
2392 | 2392 | | |
2393 | | - | |
| 2393 | + | |
| 2394 | + | |
2394 | 2395 | | |
2395 | 2396 | | |
2396 | 2397 | | |
2397 | 2398 | | |
2398 | 2399 | | |
2399 | 2400 | | |
2400 | | - | |
| 2401 | + | |
2401 | 2402 | | |
2402 | 2403 | | |
2403 | 2404 | | |
| |||
2411 | 2412 | | |
2412 | 2413 | | |
2413 | 2414 | | |
2414 | | - | |
| 2415 | + | |
2415 | 2416 | | |
2416 | 2417 | | |
2417 | 2418 | | |
| |||
0 commit comments