diff options
author | Richard Biener <rguenther@suse.de> | 2015-05-13 10:59:49 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-05-13 10:59:49 +0000 |
commit | b56b040c8438eeabeb633cf0048571c3389af990 (patch) | |
tree | cf8a861aaf4a005a74183f99364421885cabbbe6 /gcc/tree-ssa-dom.c | |
parent | 3211f4c2bf624368c77c4a4e186ca812dbd1fa2c (diff) | |
download | gcc-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.c | 3 |
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; |