This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33158] New: missed store sinking opportunity
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2007 10:26:58 -0000
- Subject: [Bug tree-optimization/33158] New: missed store sinking opportunity
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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