commit | 352367e8bb53bd4e16abaecbcb9fc0bcadf5881b | [log] [tgz] |
---|---|---|
author | Sebastian Macke <sebastian@macke.de> | Tue Oct 22 02:12:37 2013 +0200 |
committer | Jia Liu <proljc@gmail.com> | Wed Nov 20 21:40:07 2013 +0800 |
tree | 72023dae654c9d8d74fca9022c35edeb91ce4a22 | |
parent | 394cfa39ba24dd838ace1308ae24961243947fb8 [diff] |
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: Sebastian Macke <sebastian@macke.de> Reviewed-by: Jia Liu <proljc@gmail.com> Signed-off-by: Jia Liu <proljc@gmail.com>