public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] rs6000: Remove useless entries in rreg
@ 2024-05-08  6:33 Kewen.Lin
  0 siblings, 0 replies; only message in thread
From: Kewen.Lin @ 2024-05-08  6:33 UTC (permalink / raw)
  To: GCC Patches; +Cc: Segher Boessenkool, David Edelsohn, Peter Bergner

Hi,

When I was working on a trial patch to get rid of TFmode,
I noticed that mode attribute rreg only gets used for mode
iterator SFDF, it means that only SF and DF key-value pairs
are useful, the other are useless, so this patch is to clean
up them.

Bootstrapped and regtested on powerpc64-linux-gnu P8/P9 and
powerpc64le-linux-gnu P9 and P10.

I'm going to push this soon if no objections.

BR,
Kewen
-----

gcc/ChangeLog:

	* config/rs6000/rs6000.md (mode attribute rreg): Remove useless
	entries with modes TF, TD, V4SF and V2DF.
---
 gcc/config/rs6000/rs6000.md | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index bc8bc6ab060..4b70b50edca 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -725,11 +725,7 @@ (define_mode_attr ptrm [(SI "m")
 			(DI "Y")])

 (define_mode_attr rreg [(SF   "f")
-			(DF   "wa")
-			(TF   "f")
-			(TD   "f")
-			(V4SF "wa")
-			(V2DF "wa")])
+			(DF   "wa")])

 (define_mode_attr rreg2 [(SF   "f")
 			 (DF   "d")])
--
2.39.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-08  6:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-08  6:33 [PATCH] rs6000: Remove useless entries in rreg Kewen.Lin

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).