diff options
author | Michael Forney <mforney@mforney.org> | 2021-04-08 13:04:53 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-07-02 01:01:57 -0700 |
commit | eb8232463e3b1b758ff9f8a1cfb89bca2f655db4 (patch) | |
tree | a2be1baff51249cb97c75a444c9bd18f18efcf50 /test/sizeof-postfix.qbe | |
parent | 9d6020dc4a53ec66e09f84219c804f489634aa1a (diff) |
qbe: Remove more unnecessary copy instructions
Now that we don't track QBE types within values, we don't have to
worry about generating incorrect SSA when passing an 'l' value to
a function taking a 'w'. So we can just return the source value
instead of emitting a dummy copy instruction.
Diffstat (limited to 'test/sizeof-postfix.qbe')
-rw-r--r-- | test/sizeof-postfix.qbe | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/sizeof-postfix.qbe b/test/sizeof-postfix.qbe index d9eedd8..4b2636f 100644 --- a/test/sizeof-postfix.qbe +++ b/test/sizeof-postfix.qbe @@ -2,7 +2,6 @@ export function w $f() { @start.1 @body.2 - %.1 =w copy 4 - ret %.1 + ret 4 } export data $x = align 4 { z 4 } |