aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-dfa.h
AgeCommit message (Collapse)AuthorFilesLines
2016-05-18To...Richard Sandiford1-0/+1
To: gcc-patches@gcc.gnu.org Subject: PR 71020: Handle abnormal PHIs in tree-call-cdce.c From: Richard Sandiford <richard.sandiford@arm.com> Gcc: private.sent --text follows this line-- The PR is about a case where tree-call-cdce.c causes two abnormal PHIs for the same variable to be live at the same time, leading to a coalescing failure. It seemed like getting rid of these kinds of input would be generally useful, so I added a utility to tree-dfa.c. Tested on x86_64-linux-gnu. gcc/ PR middle-end/71020 * tree-dfa.h (replace_abnormal_ssa_names): Declare. * tree-dfa.c (replace_abnormal_ssa_names): New function. * tree-call-cdce.c: Include tree-dfa.h. (can_guard_call_p): New function, extracted from... (can_use_internal_fn): ...here. (shrink_wrap_one_built_in_call_with_conds): Remove failure path and return void. (shrink_wrap_one_built_in_call): Likewise. (use_internal_fn): Likewise. (shrink_wrap_conditional_dead_built_in_calls): Update accordingly and return void. Call replace_abnormal_ssa_names. (pass_call_cdce::execute): Check can_guard_call_p during the initial walk. Assume shrink_wrap_conditional_dead_built_in_calls will always change something. gcc/testsuite/ * gcc.dg/torture/pr71020.c: New test. From-SVN: r236393
2016-01-04Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r232055
2015-11-08Merge of the scalar-storage-order branch.Eric Botcazou1-1/+1
From-SVN: r229965
2015-09-20switch from gimple to gimple*Trevor Saunders1-1/+1
This renames the gimple_statement_base struct to gimple removes the typedef of gimple_statement_base * to gimple, and then adjusts all of the places that use the type. gcc/ChangeLog: 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org> * coretypes.h (gimple): Change typedef to be a forward declaration. * gimple.h (gimple_statement_base): rename to gimple. * (all functions and types using gimple): Adjust. * *.[ch]: Likewise. gcc/cp/ChangeLog: 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org> * cp-gimplify.c (gimplify_must_not_throw_expr): Adjust. From-SVN: r227941
2015-01-05Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r219188
2014-06-17tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.Andrew MacLeod1-143/+2
* tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here. * tree-dfa.c (get_addr_base_and_unit_offset_1): To here. From-SVN: r211757
2014-05-13tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index calculation ↵Richard Sandiford1-1/+2
to match get_ref_base_and_extent. gcc/ * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index calculation to match get_ref_base_and_extent. From-SVN: r210377
2014-05-06Merge in wide-int.Kenneth Zadeck1-11/+8
From-SVN: r210113
2014-01-02Update copyright years in gcc/Richard Sandiford1-1/+1
From-SVN: r206289
2013-12-02re PR tree-optimization/59356 (ACATS C52102A and C52102C failures)Eric Botcazou1-5/+5
PR tree-optimization/59356 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the offset computation using the precision of the index type. From-SVN: r205585
2013-10-02tree-flow.h: Include new .h files.Andrew Macleod1-0/+184
* tree-flow.h: Include new .h files. Move prototypes. * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h. * tree-dfa.h: New File. Add prototypes from tree-flow.h. (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h. * tree-pretty-print.h: Add prototypes from tree-flow.h. * tree-into-ssa.h: New File. Add prototypes from tree-flow.h. ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c. * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file. * tree.h (get_ref_base_and_extent): Move prototype out. * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to tree-dfa.h. * gimple-low.h: New File. Add prototypes from tree-flow.h. * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to... * tree.c (try_catch_may_fallthru, block_may_fallthru): Here. * tree-scalar-evolution.c: Include tree.h. * sese.c: Include tree.h. * dumpfile.c: Move gimple-pretty-print.h include after tree.h. * dwarf2out.c: Include tree-dfa.h. * tree-chrec.c: Include tree.h. * tree-data-ref.c: Include tree.h. From-SVN: r203113