This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/3] Fix PR46886


Hi,

in order to fix the miscompile in PR46886, I suggest to disable the
autopar pass when loop copy headers is disabled (a bit like disabling
a graphite transform when DCE is disabled).  The autopar code
generation assumes some properties that are verified after loop_ch.

The patch-set passed regstrap on amd64-linux.  Ok for trunk?

Thanks,
Sebastian

Sebastian Pop (3):
  Remove redundant call to force_gimple_operand.
  Correct indentation.
  Fix PR46886: disable autopar when flag_tree_ch is not set.

 gcc/ChangeLog                                      |   15 +++
 gcc/tree-parloops.c                                |   91 +++++++++----------
 libgomp/ChangeLog                                  |    6 ++
 libgomp/testsuite/libgomp.c/autopar-pr46886.c      |   29 ++++++
 .../testsuite/libgomp.fortran/autopar-pr46886.f90  |   21 +++++
 5 files changed, 114 insertions(+), 48 deletions(-)
 create mode 100644 libgomp/testsuite/libgomp.c/autopar-pr46886.c
 create mode 100644 libgomp/testsuite/libgomp.fortran/autopar-pr46886.f90


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]