]> Witch of Git - ivy/commit
Load numbers directly instead of via stack
authorCassie Jones <code@witchoflight.com>
Mon, 2 Mar 2020 00:06:12 +0000 (01:06 +0100)
committerCassie Jones <code@witchoflight.com>
Mon, 2 Mar 2020 00:06:12 +0000 (01:06 +0100)
commit3a463fcb41ae9c8dd8b6fd985a84a99da2eee55f
tree78af815b807dc313f56590e8717e9ee992659ab1
parent1b50778271f4537514fcb02c0a12e36262d71070
Load numbers directly instead of via stack

Assembly output for programs that used number literals was getting hard
to read because it indirected everything through the stack, directly
loading numbers in programs instead makes things behave much better.
This works via the same approach as the previous load forwarding.
ivy-examples/lots-of-numbers.vy [new file with mode: 0644]
src/trans/x64.rs