diff options
author | Max Graey <maxgraey@gmail.com> | 2020-10-30 08:08:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 23:08:48 -0700 |
commit | 5fc27e20479edfef0674c89e9bb7888ee25cb054 (patch) | |
tree | a748191c55e48d91bbc3d01ed64e6d3de0762c66 /src/passes/Memory64Lowering.cpp | |
parent | 25e47f2c3e7ca8151377075432b34c95073acaca (diff) | |
download | binaryen-5fc27e20479edfef0674c89e9bb7888ee25cb054.tar.gz binaryen-5fc27e20479edfef0674c89e9bb7888ee25cb054.tar.bz2 binaryen-5fc27e20479edfef0674c89e9bb7888ee25cb054.zip |
Fold subtraction of sums or differences from constants (#3295)
`C1 - (x + C2)` -> `(C1 - C2) - x`
`C1 - (x - C2)` -> `(C1 + C2) - x`
`C1 - (C2 - x)` -> `x + (C1 - C2)`
Diffstat (limited to 'src/passes/Memory64Lowering.cpp')
0 files changed, 0 insertions, 0 deletions