aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2017-08-22 09:13:09 -0600
committerJeff Law <law@gcc.gnu.org>2017-08-22 09:13:09 -0600
commit0db8ddfcb660397bab428ce0d271967d24c23177 (patch)
tree4004740d0a74395c77ee7b55de8e23b4d1a201a6 /gcc/cse.c
parentd4c550fd0ecb17d577353074c58283e942d1f870 (diff)
downloadgcc-0db8ddfcb660397bab428ce0d271967d24c23177.zip
gcc-0db8ddfcb660397bab428ce0d271967d24c23177.tar.gz
gcc-0db8ddfcb660397bab428ce0d271967d24c23177.tar.bz2
re PR tree-optimization/81741 (Misoptimisation : replacing a constant field read access by a function call)
PR tree-optimization/81741 PR tree-optimization/71947 * tree-ssa-dom.c: Include tree-inline.h. (record_temporary_equivalences): Only record SSA_NAME = SSA_NAME equivalences if one is more expensive to compute than the other. * tree-ssa-scopedtables.h (class const_or_copies): Make record_const_or_copy_raw method private. (class avail_exprs_stack): New method simplify_binary_operation. * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Call avail_exprs_stack::simplify_binary_operation as needed. (avail_exprs_stack::simplify_binary_operation): New function. PR tree-optimization/81741 PR tree-optimization/71947 * gcc.dg/tree-ssa/pr81741.c: New test. * gcc.dg/tree-ssa/pr71947-7.c: New test. * gcc.dg/tree-ssa/pr71947-8.c: New test. * gcc.dg/tree-ssa/pr71947-9.c: New test. * gcc.dg/tree-ssa/pr71941-1.c: Tweak expected output. * gcc.dg/tree-ssa/pr71941-2.c: Tweak expected output. * gcc.dg/tree-ssa/pr71941-3.c: Tweak expected output. * gcc.dg/tree-ssa/20030922-2.c: xfail. From-SVN: r251279
Diffstat (limited to 'gcc/cse.c')
0 files changed, 0 insertions, 0 deletions