| Subject: | [Bug tree-optimization/23821] New: Dom creating harder to optimize code |
|---|---|
| From: | "rakdver at gcc dot gnu dot org" |
| Date: | 11 Sep 2005 10:46:43 -0000 |
Dom transforms the following testcase:
static int a[199];
int
main ()
{
int i, x;
for (i = 0; i < 199; i++)
{
x = a[i];
if (x != i)
abort ();
}
return 0;
}
to
int
main ()
{
int i;
for (i = 0; i < 199; i = x + 1)
{
x = a[i];
if (x != i)
abort ();
}
return 0;
}
Now we are not able to determine that i is an induction variable.
--
Summary: Dom creating harder to optimize code
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rakdver at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23821
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Bug tree-optimization/23817] ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398, belyshev at depni dot sinp dot msu dot ru |
|---|---|
| Next by Date: | [Bug libfortran/21820] Really, really, horrible IO performance, jblomqvi at cc dot hut dot fi |
| Previous by Thread: | [Bug tree-optimization/23820] New: ICE in lambda_loopnest_to_gcc_loopnest, at lambda-code.c:1982, belyshev at depni dot sinp dot msu dot ru |
| Next by Thread: | [Bug c++/23823] New: Is this right?, igodard at pacbell dot net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |