This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] optimize 40x description a bit
- From: Eric Christopher <echristo at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dje at watson dot ibm dot com
- Date: Thu, 08 Jul 2004 16:36:46 -0700
- Subject: [patch] optimize 40x description a bit
Got some speed complaints on genattrtab for the rs6000 backend. Well,
this appears to cut about 800 states out of the dfa and help about 4
seconds out of 126 originally (uh. woo.), anyhow, thought I'd submit it.
The big hog if someone really wants to look at it is the 7450
description. Ick.
-eric
--
Eric Christopher <echristo@redhat.com>
2004-07-08 Eric Christopher <echristo@redhat.com>
* config/rs6000/40x.md: Split into two automatons.
Index: 40x.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/40x.md,v
retrieving revision 1.8
diff -u -p -w -r1.8 40x.md
--- 40x.md 9 Jun 2003 17:16:13 -0000 1.8
+++ 40x.md 8 Jul 2004 23:36:12 -0000
@@ -18,8 +18,9 @@
;; Free Software Foundation, 59 Temple Place - Suite 330, Boston,
;; MA 02111-1307, USA.
-(define_automaton "ppc40x")
-(define_cpu_unit "iu_40x,bpu_40x,fpu_405" "ppc40x")
+(define_automaton "ppc40x,iu_40x")
+(define_cpu_unit "bpu_40x,fpu_405" "ppc40x")
+(define_cpu_unit "iu_40x" "iu_40x")
;; PPC401 / PPC403 / PPC405 32-bit integer only IU BPU
;; Embedded PowerPC controller
@@ -104,4 +105,3 @@
(and (eq_attr "type" "fpload,fpload_ux,fpload_u,fpstore,fpstore_ux,fpstore_u,fpcompare,fp,dmul,sdiv,ddiv")
(eq_attr "cpu" "ppc405"))
"fpu_405*10")
-