public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug tree-optimization/33158] New: missed store sinking opportunity @ 2007-08-23 10:27 bonzini at gnu dot org 2007-08-23 10:27 ` [Bug tree-optimization/33158] " bonzini at gnu dot org ` (2 more replies) 0 siblings, 3 replies; 6+ messages in thread From: bonzini at gnu dot org @ 2007-08-23 10:27 UTC (permalink / raw) To: gcc-bugs In gcc.target/i386/cmov4.c no store sinking is performed for this code for (i = 0; i < ARCHnodes; i++) { nodekind[i] = (int) nodekindf[i]; if (nodekind[i] == 3) nodekind[i] = 1; } I would expect it to be rewritten as for (i = 0; i < ARCHnodes; i++) { int x = (int) nodekindf[i]; if (x == 3) x = 1; nodekind[i] = x; } -- Summary: missed store sinking opportunity Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bonzini at gnu dot org OtherBugsDependingO 33157 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33158 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/33158] missed store sinking opportunity 2007-08-23 10:27 [Bug tree-optimization/33158] New: missed store sinking opportunity bonzini at gnu dot org @ 2007-08-23 10:27 ` bonzini at gnu dot org 2007-08-24 12:44 ` rguenth at gcc dot gnu dot org 2007-08-24 14:54 ` paolo dot bonzini at lu dot unisi dot ch 2 siblings, 0 replies; 6+ messages in thread From: bonzini at gnu dot org @ 2007-08-23 10:27 UTC (permalink / raw) To: gcc-bugs -- bonzini at gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn|33159 | Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-08-23 10:27:48 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33158 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/33158] missed store sinking opportunity 2007-08-23 10:27 [Bug tree-optimization/33158] New: missed store sinking opportunity bonzini at gnu dot org 2007-08-23 10:27 ` [Bug tree-optimization/33158] " bonzini at gnu dot org @ 2007-08-24 12:44 ` rguenth at gcc dot gnu dot org 2007-08-24 14:54 ` paolo dot bonzini at lu dot unisi dot ch 2 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu dot org @ 2007-08-24 12:44 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from rguenth at gcc dot gnu dot org 2007-08-24 12:44 ------- It also naturally would fit in the phiopt framework given the structure of virtual operands: # SMT.4_26 = VDEF <SMT.4_18> *D.2016_7 = D.2019_13; if (D.2019_13 == 3) goto <bb 4>; else goto <bb 9>; <bb 9>: goto <bb 5>; <bb 4>: # SMT.4_27 = VDEF <SMT.4_26> *D.2016_7 = 1; <bb 5>: # SMT.4_22 = PHI <SMT.4_26(9), SMT.4_27(4)> -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matz at gcc dot gnu dot org Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33158 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/33158] missed store sinking opportunity 2007-08-23 10:27 [Bug tree-optimization/33158] New: missed store sinking opportunity bonzini at gnu dot org 2007-08-23 10:27 ` [Bug tree-optimization/33158] " bonzini at gnu dot org 2007-08-24 12:44 ` rguenth at gcc dot gnu dot org @ 2007-08-24 14:54 ` paolo dot bonzini at lu dot unisi dot ch 2 siblings, 0 replies; 6+ messages in thread From: paolo dot bonzini at lu dot unisi dot ch @ 2007-08-24 14:54 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from paolo dot bonzini at lu dot unisi dot ch 2007-08-24 14:53 ------- Subject: Re: missed store sinking opportunity Danny said he knows how to fix it (I guess in store sinking though he didn't say). From knowing him, there might be additional less obvious cases that this fix might optimize, and that would not be optimized by phiopt. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33158 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <bug-33158-4@http.gcc.gnu.org/bugzilla/>]
* [Bug tree-optimization/33158] missed store sinking opportunity [not found] <bug-33158-4@http.gcc.gnu.org/bugzilla/> @ 2012-02-07 21:08 ` pinskia at gcc dot gnu.org 2023-05-06 18:37 ` pinskia at gcc dot gnu.org 1 sibling, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu.org @ 2012-02-07 21:08 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33158 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |10050 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-07 21:07:41 UTC --- This is basically the same as PR 10050. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/33158] missed store sinking opportunity [not found] <bug-33158-4@http.gcc.gnu.org/bugzilla/> 2012-02-07 21:08 ` pinskia at gcc dot gnu.org @ 2023-05-06 18:37 ` pinskia at gcc dot gnu.org 1 sibling, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-05-06 18:37 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33158 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Target Milestone|--- |4.3.0 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fixed a long long time ago by r0-83223-ga5828d1e531377 . ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-05-06 18:37 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-08-23 10:27 [Bug tree-optimization/33158] New: missed store sinking opportunity bonzini at gnu dot org 2007-08-23 10:27 ` [Bug tree-optimization/33158] " bonzini at gnu dot org 2007-08-24 12:44 ` rguenth at gcc dot gnu dot org 2007-08-24 14:54 ` paolo dot bonzini at lu dot unisi dot ch [not found] <bug-33158-4@http.gcc.gnu.org/bugzilla/> 2012-02-07 21:08 ` pinskia at gcc dot gnu.org 2023-05-06 18:37 ` pinskia at gcc dot gnu.org
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).