public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Optimize immediate load. Add prefetch insns.
@ 2022-10-29  7:05 Lulu Cheng
  2022-10-29  7:05 ` [PATCH v1 1/2] LoongArch: Optimize immediate load Lulu Cheng
  2022-10-29  7:05 ` [PATCH v1 2/2] LoongArch: Add prefetch insns Lulu Cheng
  0 siblings, 2 replies; 4+ messages in thread
From: Lulu Cheng @ 2022-10-29  7:05 UTC (permalink / raw)
  To: gcc-patches; +Cc: xry111, i, xuchenghua, Lulu Cheng

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

-- 
2.31.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-29  7:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-29  7:05 [PATCH v1 0/2] Optimize immediate load. Add prefetch insns Lulu Cheng
2022-10-29  7:05 ` [PATCH v1 1/2] LoongArch: Optimize immediate load Lulu Cheng
2022-10-29  7:05 ` [PATCH v1 2/2] LoongArch: Add prefetch insns Lulu Cheng
2022-10-29  7:40   ` Lulu Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).