]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: Remove useless entries in rreg
authorKewen Lin <linkw@linux.ibm.com>
Tue, 21 May 2024 02:01:07 +0000 (21:01 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Tue, 21 May 2024 02:01:07 +0000 (21:01 -0500)
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.

gcc/ChangeLog:

* config/rs6000/rs6000.md (mode attribute rreg): Remove useless
entries with modes TF, TD, V4SF and V2DF.

gcc/config/rs6000/rs6000.md

index ac5651d7420cbce45d60b8fcd7736bc65402b0a0..7d0019ab410ae90c61121505dd69efce3919d4f8 100644 (file)
                        (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")])