aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-05-13 10:59:49 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2015-05-13 10:59:49 +0000
commitb56b040c8438eeabeb633cf0048571c3389af990 (patch)
treecf8a861aaf4a005a74183f99364421885cabbbe6 /gcc/tree-ssa-dom.c
parent3211f4c2bf624368c77c4a4e186ca812dbd1fa2c (diff)
downloadgcc-b56b040c8438eeabeb633cf0048571c3389af990.zip
gcc-b56b040c8438eeabeb633cf0048571c3389af990.tar.gz
gcc-b56b040c8438eeabeb633cf0048571c3389af990.tar.bz2
re PR tree-optimization/66123 (Array of labels as values + ternary operator + pointer arithmetic = internal compiler error)
2015-05-13 Richard Biener <rguenther@suse.de> PR tree-optimization/66123 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found a taken edge. * gcc.dg/torture/pr66123.c: New testcase. From-SVN: r223130
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index 14f3e9e..42324ee 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -2918,6 +2918,9 @@ propagate_rhs_into_lhs (gimple stmt, tree lhs, tree rhs, bitmap interesting_name
{
basic_block bb = gimple_bb (use_stmt);
edge te = find_taken_edge (bb, val);
+ if (!te)
+ continue;
+
edge_iterator ei;
edge e;
gimple_stmt_iterator gsi;