Skip to content

Inline pure functions when all args are constant#395

Merged
totalspectrum merged 2 commits intototalspectrum:masterfrom
Wuerfel21:W21-purefunc-inline
Jul 5, 2023
Merged

Inline pure functions when all args are constant#395
totalspectrum merged 2 commits intototalspectrum:masterfrom
Wuerfel21:W21-purefunc-inline

Conversation

@Wuerfel21
Copy link
Contributor

A pure function here meaning one that only contains ALU ops between locals/args/results and is otherwise inline eligible. The set of allowed ops is a bit small right now, but it can now constant propagate some 64 bit ops (notably shifts):

image

Also included: BITx constant eval

@totalspectrum totalspectrum merged commit 71f4a0a into totalspectrum:master Jul 5, 2023
@Wuerfel21 Wuerfel21 mentioned this pull request Jul 5, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants