fix PR68493: bail out when codegen_error is set
Co-Authored-By: Sebastian Pop <s.pop@samsung.com> From-SVN: r230772
This commit is contained in:
parent
36f40be012
commit
4c93660449
@ -1,3 +1,10 @@
|
||||
2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
|
||||
Sebastian Pop <s.pop@samsung.com>
|
||||
|
||||
PR tree-optimization/68493
|
||||
* graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
|
||||
missing early return when codegen_error is set.
|
||||
|
||||
2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
|
||||
Sebastian Pop <s.pop@samsung.com>
|
||||
|
||||
|
@ -2761,6 +2761,8 @@ translate_isl_ast_to_gimple::translate_pending_phi_nodes ()
|
||||
fprintf (dump_file, "[codegen] to new-phi: ");
|
||||
print_gimple_stmt (dump_file, new_phi, 0, 0);
|
||||
}
|
||||
if (codegen_error)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,14 @@
|
||||
2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
|
||||
Sebastian Pop <s.pop@samsung.com>
|
||||
|
||||
PR tree-optimization/68493
|
||||
* gcc.dg/graphite/pr68493.c: New.
|
||||
|
||||
2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
|
||||
Sebastian Pop <s.pop@samsung.com>
|
||||
|
||||
PR tree-optimization/68279
|
||||
* testsuite/gfortran.dg/graphite/pr68279.f90: New.
|
||||
* gfortran.dg/graphite/pr68279.f90: New.
|
||||
|
||||
2015-11-23 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
|
34
gcc/testsuite/gcc.dg/graphite/pr68493.c
Normal file
34
gcc/testsuite/gcc.dg/graphite/pr68493.c
Normal file
@ -0,0 +1,34 @@
|
||||
/* { dg-options "-O1 -floop-nest-optimize" } */
|
||||
|
||||
int ce[2];
|
||||
int o5;
|
||||
int p7;
|
||||
|
||||
int foo (void)
|
||||
{
|
||||
int j1;
|
||||
ce[0] = 0;
|
||||
for (j1 = 0; j1 < 2; ++j1)
|
||||
for (o5 = 1; o5 >= 0; --o5)
|
||||
p7 += ce[o5];
|
||||
return 0;
|
||||
}
|
||||
|
||||
int du;
|
||||
|
||||
int bar (void)
|
||||
{
|
||||
int u7[2];
|
||||
int ar;
|
||||
|
||||
for (ar = 0; ar < 2; ++ar) {
|
||||
int xo;
|
||||
|
||||
for (xo = 0; xo < 2; ++xo) {
|
||||
du += u7[ar];
|
||||
u7[0] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user