Improved instruction selection for JumpIf Imm #104

Open
myreen opened this Issue Mar 15, 2016 · 0 comments

Projects

None yet

1 participant

@myreen
Contributor
myreen commented Mar 15, 2016

When the immediate value is too large, the instruction selection drops the immediate into a normal register. This consumes a register name, which is bad because it might mean that some other value gets pushed onto the stack.

An alternative strategy is to wait until the word-to-stack compiler and have it drop the too large immediate into one of its temporaries so that a normal register isn't wasted on this short-lived immediate value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment