spin2cpp icon indicating copy to clipboard operation
spin2cpp copied to clipboard

Poor optimization around SETQ

Open Wuerfel21 opened this issue 2 years ago • 0 comments

As mentioned in #312, SETQ currently inhibits a bunch of optimizations by way of it being auto-marked as volatile. Though I'm not sure if that even covers all the potential troubles (esp since dead code can be disabled).

I know the block reordering functions used for the CORDIC optimizations (at least in theory) deal correctly with prefix ops. I think the only other places that might need to deal with it are the dead code eliminator itself, CanSwap and maybe the code that does hub read/write forwarding.

So probably not too much trouble?

Wuerfel21 avatar Nov 21 '22 20:11 Wuerfel21