Commit 7a5a0dec by Richard Biener Committed by Richard Biener

re PR tree-optimization/68592 (ICE in vect_get_vec_def_for_operand, at…

re PR tree-optimization/68592 (ICE in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1403 with -fprofile-generate)

2015-11-30  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/68592
	* tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
	on the pattern def sequence.

	* gfortran.dg/pr68592.f: New testcase.

From-SVN: r231074
parent b699adcc
2015-11-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/68592
* tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
on the pattern def sequence.
2015-11-30 Nathan Sidwell <nathan@acm.org>
* config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
2015-11-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/68592
* gfortran.dg/pr68592.f: New testcase.
2015-11-30 Paul Thomas <pault@gcc.gnu.org>
PR fortran/68534
......
! PR tree-optimization/68592
! { dg-do compile }
! { dg-require-profiling "-fprofile-generate" }
! { dg-options "-Ofast -fprofile-generate" }
! { dg-additional-options "-mavx" { target x86_64-*-* i?86-*-* } }
PARAMETER (MXCPGA=320,ZERO=0.0)
DIMENSION CPNORM(MXCPGA),CDNORM(MXCPGA),
* CFNORM(MXCPGA)
KTYPIL = KTYPI()
DO 84 K=1,NOGTF
LMP=LMP+1
CFNORM(LMP)=ZERO
IF (KTYPIL.EQ.1) LMP=CMPILMP
IF (KTYPIL.EQ.2) CPNORM(LMP)=CMPILMP
IF (KTYPIL.EQ.3) CDNORM(LMP)=CMPILMP
IF (KTYPIL.EQ.4) LMP=CMPILMP
IF (KTYPIL.EQ.6) LMP=CMPILMP
84 CONTINUE
CALL MMPNOR(CPNORM,CDNORM,CFNORM)
END
......@@ -2178,6 +2178,13 @@ again:
{
gcc_assert (STMT_SLP_TYPE (stmt_info) == loop_vect);
stmt_info = vinfo_for_stmt (STMT_VINFO_RELATED_STMT (stmt_info));
for (gimple_stmt_iterator pi
= gsi_start (STMT_VINFO_PATTERN_DEF_SEQ (stmt_info));
!gsi_end_p (pi); gsi_next (&pi))
{
gimple *pstmt = gsi_stmt (pi);
STMT_SLP_TYPE (vinfo_for_stmt (pstmt)) = loop_vect;
}
}
STMT_SLP_TYPE (stmt_info) = loop_vect;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment