Commit 4b946ba
authored
[NFC-for-now] Fix LocalCSE bug in ignoring traps (#8385)
The code did "trap = false; scan()", but that is wrong, as it wants to
remove the trap after the scan. Reorder and just use a ShallowEffectAnalyzer.
But this logic bug was not actually allowing different behavior, see the
detailed comment - we have no effects atm that can distinguish the two
cases. If we add new effects, we might, though, so this is worth doing.1 parent 146905f commit 4b946ba
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
469 | 471 | | |
470 | 472 | | |
471 | 473 | | |
| |||
475 | 477 | | |
476 | 478 | | |
477 | 479 | | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
478 | 488 | | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | 489 | | |
483 | 490 | | |
484 | 491 | | |
| |||
0 commit comments