Commit 416c293
committed
Restore divide-by-zero guard on FDiv constant folding
In an e-graph where algebraic rules (FDiv(x,x)=1.0, FSub(x,x)=0.0)
and constant-folding rules fire in the same saturation pass, producing
NaN/Inf from 0.0/0.0 would equate FConst(NaN) with FConst(1.0),
corrupting the e-graph. Keep the != 0.0 guard.1 parent b81e14f commit 416c293
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
0 commit comments