[v1,0/2] Optimize immediate load. Add prefetch insns.

Message ID 20221029070524.2570782-1-chenglulu@loongson.cn
Headers
Series Optimize immediate load. Add prefetch insns. |

Message

chenglulu Oct. 29, 2022, 7:05 a.m. UTC
  1. The problem mentioned in the link does not move the four immediate load
   instructions out of the loop. It has been optimized. Now, as in the test case,
   four immediate load instructions are generated outside the loop.
   (https://sourceware.org/pipermail/libc-alpha/2022-September/142202.html)

2. Add prefetch insns.

*** BLURB HERE ***

Lulu Cheng (2):
  LoongArch: Optimize immediate load.
  LoongArch: Add prefetch insns.

 gcc/config/loongarch/constraints.md           |   7 +-
 gcc/config/loongarch/loongarch-def.c          |   2 +
 gcc/config/loongarch/loongarch-protos.h       |   1 +
 gcc/config/loongarch/loongarch-tune.h         |   1 +
 gcc/config/loongarch/loongarch.cc             | 143 ++++++++++++++----
 gcc/config/loongarch/loongarch.h              |   6 +
 gcc/config/loongarch/loongarch.md             |  49 ++++++
 gcc/config/loongarch/predicates.md            |   8 +
 gcc/testsuite/gcc.target/loongarch/imm-load.c |  25 +++
 9 files changed, 208 insertions(+), 34 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/loongarch/imm-load.c