aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2011-07-25 14:51:47 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2011-07-25 14:51:47 +0000
commit59daeef4e14fbe21f3699e33713f29b5ed968562 (patch)
treecdfa49c7a1ddb854392a47feba4fa5e4346f02fe /gcc/tree-ssa-phiopt.c
parenta024b70f1064beaa99d433f6e82e4cb4c9bf2945 (diff)
downloadgcc-59daeef4e14fbe21f3699e33713f29b5ed968562.zip
gcc-59daeef4e14fbe21f3699e33713f29b5ed968562.tar.gz
gcc-59daeef4e14fbe21f3699e33713f29b5ed968562.tar.bz2
re PR tree-optimization/49809 (gimple_check failure at -O3)
gcc/ PR tree-optimization/49809 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use gimple_get_lhs instead of gimple_assign_lhs. gcc/testsuite/ PR tree-optimization/49809 * gnat.dg/opt18.adb, gnat.dg/opt18.ads, gnat.dg/opt18_pkg.ads: New test. From-SVN: r176750
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
-rw-r--r--gcc/tree-ssa-phiopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c
index ed8f979..30eea31 100644
--- a/gcc/tree-ssa-phiopt.c
+++ b/gcc/tree-ssa-phiopt.c
@@ -1454,7 +1454,7 @@ cond_if_else_store_replacement (basic_block then_bb, basic_block else_bb,
continue;
then_store = DR_STMT (then_dr);
- then_lhs = gimple_assign_lhs (then_store);
+ then_lhs = gimple_get_lhs (then_store);
found = false;
FOR_EACH_VEC_ELT (data_reference_p, else_datarefs, j, else_dr)
@@ -1463,7 +1463,7 @@ cond_if_else_store_replacement (basic_block then_bb, basic_block else_bb,
continue;
else_store = DR_STMT (else_dr);
- else_lhs = gimple_assign_lhs (else_store);
+ else_lhs = gimple_get_lhs (else_store);
if (operand_equal_p (then_lhs, else_lhs, 0))
{