diff options
author | Michael Forney <mforney@mforney.org> | 2020-05-24 20:07:49 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2020-05-24 20:10:02 -0700 |
commit | 3d91966b0dcfe0bd0fc3a779a63d49546e46aea8 (patch) | |
tree | 82b972d68b11c32e1f26e05dd9e4bbfc7e7b802e /test/local-init.qbe | |
parent | 5ed26f909dd923dcd811784bc88efa46ad57bb30 (diff) |
qbe: Omit unnecessary add to help QBE's memopt pass
Diffstat (limited to 'test/local-init.qbe')
-rw-r--r-- | test/local-init.qbe | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/test/local-init.qbe b/test/local-init.qbe index 8d7346a..a8b919e 100644 --- a/test/local-init.qbe +++ b/test/local-init.qbe @@ -3,20 +3,19 @@ function $f() { @start.1 %.1 =l alloc8 32 @body.2 - %.2 =l add %.1, 0 - %.3 =w copy 97 - storeb %.3, %.2 - %.4 =l add %.1, 1 - storeb 0, %.4 - %.5 =l add %.1, 2 - storeh 0, %.5 - %.6 =l add %.1, 4 - storew 0, %.6 - %.7 =l add %.1, 8 + %.2 =w copy 97 + storeb %.2, %.1 + %.3 =l add %.1, 1 + storeb 0, %.3 + %.4 =l add %.1, 2 + storeh 0, %.4 + %.5 =l add %.1, 4 + storew 0, %.5 + %.6 =l add %.1, 8 + storel 0, %.6 + %.7 =l add %.1, 16 storel 0, %.7 - %.8 =l add %.1, 16 + %.8 =l add %.1, 24 storel 0, %.8 - %.9 =l add %.1, 24 - storel 0, %.9 ret } |