public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Fix PR 49014
@ 2011-05-25  9:45 Andrey Belevantsev
  2011-05-25 14:57 ` Bernd Schmidt
  0 siblings, 1 reply; 10+ messages in thread
From: Andrey Belevantsev @ 2011-05-25  9:45 UTC (permalink / raw)
  To: GCC Patches; +Cc: Vladimir N. Makarov, Bernd Schmidt

Hello,

This patch fixes PR 49014, yet another case of the insn with wrong 
reservation.  Approved by Uros in the PR audit trail, bootstrapped and 
regtested on x86-64/linux and committed to trunk.

Vlad, Bernd, I wonder if we can avoid having recog_memoized >=0 insns that 
do not have proper DFA reservations (that is, they do not change the DFA 
state).  I see that existing practice allows this as shown by Bernd's patch 
to 48403, i.e. such insns do not count against issue_rate.  I would be 
happy to fix sel-sched in the same way.  However, both sel-sched ICEs as 
shown by PRs 48143 and 49014 really uncover the latent bugs in the backend. 
  So, is it possible to stop having such insns if scheduling is desired, or 
otherwise distinguish the insns that wrongly miss the proper DFA reservation?

Yours, Andrey

Index: gcc/ChangeLog
===================================================================
*** gcc/ChangeLog       (revision 174171)
--- gcc/ChangeLog       (working copy)
***************
*** 1,3 ****
--- 1,8 ----
+ 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
+
+       PR rtl-optimization/49014
+       * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
+
   2011-05-25  Jakub Jelinek  <jakub@redhat.com>

         PR target/49128
Index: gcc/config/i386/athlon.md
===================================================================
*** gcc/config/i386/athlon.md   (revision 174171)
--- gcc/config/i386/athlon.md   (working copy)
*************** (define_insn_reservation "athlon_ssecomi
*** 798,804 ****
                          "athlon-direct,athlon-fploadk8,athlon-fadd")
   (define_insn_reservation "athlon_ssecomi" 4
                          (and (eq_attr "cpu" "athlon,k8,generic64")
!                             (eq_attr "type" "ssecmp"))
                          "athlon-vector,athlon-fpsched,athlon-fadd")
   (define_insn_reservation "athlon_ssecomi_amdfam10" 3
                          (and (eq_attr "cpu" "amdfam10")
--- 798,804 ----
                          "athlon-direct,athlon-fploadk8,athlon-fadd")
   (define_insn_reservation "athlon_ssecomi" 4
                          (and (eq_attr "cpu" "athlon,k8,generic64")
!                             (eq_attr "type" "ssecomi"))
                          "athlon-vector,athlon-fpsched,athlon-fadd")
   (define_insn_reservation "athlon_ssecomi_amdfam10" 3
                          (and (eq_attr "cpu" "amdfam10")

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

end of thread, other threads:[~2011-07-08 15:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-25  9:45 Fix PR 49014 Andrey Belevantsev
2011-05-25 14:57 ` Bernd Schmidt
2011-05-25 16:42   ` Andrey Belevantsev
2011-05-25 16:49     ` Bernd Schmidt
2011-05-26 13:53       ` Andrey Belevantsev
2011-07-01 14:50         ` Andrey Belevantsev
2011-07-07 16:28           ` Vladimir Makarov
2011-07-08  8:27             ` Andrey Belevantsev
2011-07-08 15:38               ` Vladimir Makarov
2011-07-07 17:13           ` Bernd Schmidt

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