aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphite-isl-ast-to-gimple.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2018-11-14 11:11:05 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2018-11-14 11:11:05 +0000
commitcbf9e2fee37489089874cce8c03aa23eb5ed977e (patch)
tree9a2198786a76201c3ac33858d012465d2bdd40a2 /gcc/graphite-isl-ast-to-gimple.c
parent73dac59b57ad6af6a369f5005c979a20a2ad2954 (diff)
downloadgcc-cbf9e2fee37489089874cce8c03aa23eb5ed977e.zip
gcc-cbf9e2fee37489089874cce8c03aa23eb5ed977e.tar.gz
gcc-cbf9e2fee37489089874cce8c03aa23eb5ed977e.tar.bz2
re PR tree-optimization/88019 (ICE in gimplify_modify_expr, at gimplify.c:5779)
2018-11-14 Richard Biener <rguenther@suse.de> PR tree-optimization/88019 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Rewrite COND_EXPR arguments to non-trapping overflow. From-SVN: r266105
Diffstat (limited to 'gcc/graphite-isl-ast-to-gimple.c')
-rw-r--r--gcc/graphite-isl-ast-to-gimple.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/graphite-isl-ast-to-gimple.c b/gcc/graphite-isl-ast-to-gimple.c
index 0d8960c..e2dbf6f 100644
--- a/gcc/graphite-isl-ast-to-gimple.c
+++ b/gcc/graphite-isl-ast-to-gimple.c
@@ -411,7 +411,9 @@ ternary_op_to_tree (tree type, __isl_take isl_ast_expr *expr, ivs_params &ip)
if (codegen_error_p ())
return NULL_TREE;
- return fold_build3 (COND_EXPR, type, a, b, c);
+ return fold_build3 (COND_EXPR, type, a,
+ rewrite_to_non_trapping_overflow (b),
+ rewrite_to_non_trapping_overflow (c));
}
/* Converts a unary isl_ast_expr_op expression E to a GCC expression tree of