sway icon indicating copy to clipboard operation
sway copied to clipboard

Instruction Combining

Open sezna opened this issue 3 years ago • 1 comments

While we can't fully implement this without gas profiling and knowledge of instruction costs, we can do some basic combinations like folding successive adds to the same register into one add, etc.

sezna avatar Sep 08 '22 21:09 sezna

relevant to optimize things within what are currently asm blocks: #855

We can't optimize inside asm blocks, so we would need to introduce intrinsics for a lot of basic opcodes.

sezna avatar Sep 08 '22 21:09 sezna

folding successive adds to the same register into one add,

I'm not sure I understand this. Can you post a small example? Also any other patterns that need to be optimized, which you have in mind. That'll help me plan this better.

vaivaswatha avatar Oct 10 '22 09:10 vaivaswatha

Closing this due to lack of information.

Related #5270.

vaivaswatha avatar Dec 05 '23 15:12 vaivaswatha