Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
We always store the result to a w temporary, so there is no difference.
In fact, QBE provides loadw as an alias for loadsw precisely for
this reason.
|
|
Fixes #51.
Thanks to Andrew Chambers for the bug report and test case.
|
|
It would be correct in any order, but this is a bit simpler and guarantees
the same output.
|
|
|