Commit 078f7e37 by Richard Biener Committed by Richard Biener

re PR tree-optimization/70960 (ICE: tree check: expected ssa_name, have…

re PR tree-optimization/70960 (ICE: tree check: expected ssa_name, have integer_cst in ifcvt_walk_pattern_tree, at tree-if-conv.c:2465)

2016-05-06  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/70960
	* tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.

	* gfortran.fortran-torture/compile/pr70960.f90: New testcase.

From-SVN: r235953
parent 765d7b54
2016-05-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/70960
* tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
PR target/52933
......
2016-05-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/70960
* gfortran.fortran-torture/compile/pr70960.f90: New testcase.
2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
PR target/52933
......
SUBROUTINE calbrec(a,ai,error)
REAL(KIND=8) :: a(3,3), ai(3,3)
DO i = 1, 3
il = 1
IF (i==1) il = 2
DO j = 1, 3
ai(j,i) = (-1.0_8)**(i+j)*det*(a(il,jl)*a(iu,ju)-a(il,ju)*a(iu,jl))
END DO
END DO
END SUBROUTINE calbrec
......@@ -2462,6 +2462,9 @@ ifcvt_walk_pattern_tree (tree var, vec<gimple *> *defuse_list,
enum tree_code code;
gimple *def_stmt;
if (TREE_CODE (var) != SSA_NAME)
return;
def_stmt = SSA_NAME_DEF_STMT (var);
if (gimple_code (def_stmt) != GIMPLE_ASSIGN)
return;
......
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