Commit 60a0443
authored
Use a wrapping add in egraph optimizations (#11588)
* Use a wrapping add in egraph optimizations
This commit fixes an accidental bug from #11526 found via fuzzing where
the `u64_add` helper in ISLE is a panicking add but the desired
semantics here were a wrapping add. A test is added here and the
additions are updated to `u64_wrapping_add` instead.
* Add output assertion1 parent c934058 commit 60a0443
File tree
2 files changed
+22
-2
lines changed- cranelift
- codegen/src/opts
- filetests/filetests/egraph
2 files changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
| 99 | + | |
| 100 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
0 commit comments