target-openrisc: Speed up move instruction
The OpenRISC architecture does not have its own move register instruction. Instead it uses either "l.addi rd, r0, x" or "l.ori rd, rs, 0" or "l.or rd, rx, r0" The l.ori instruction is automatically optimized but not the l.addi instruction. This patch optimizes for this special case. Signed-off-by: NSebastian Macke <sebastian@macke.de> Reviewed-by: NJia Liu <proljc@gmail.com> Signed-off-by: NJia Liu <proljc@gmail.com>
Showing
想要评论请 注册 或 登录