LEA0317 / LLVM-VideoCore4

LLVM toy compiler for VideoCore4 (Raspberry Pi VPU)
1 stars 0 forks source link

isel 3 operands pseudo instructions for codegen efficiency #6

Open LEA0317 opened 2 years ago

LEA0317 commented 2 years ago

change(optimize) to 2 operands instructions if possible (for code density).

LEA0317 commented 2 years ago

Not feasible with this ISA in the first place. (Hardware design concept is useless)

LEA0317 commented 2 years ago

According to this, it seems that 3 operands instructions are also possible, so I will support code generation.  http://maazl.de/project/vc4asm/doc/instructions.html

With appropriate restrictions on RA, we can make short instructions in most cases.

LEA0317 commented 2 years ago

According to this, the effect is small, so lower the priority.

https://github.com/hermanhermitage/videocoreiv/wiki/VideoCore-IV-Programmers-Manual