Bug 12837 - The mod vpt does not work on PPC
Summary: The mod vpt does not work on PPC
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 3.4.0
: P2 enhancement
Target Milestone: 4.1.0
Assignee: Andrew Pinski
URL:
Keywords: missed-optimization
Depends on:
Blocks:
 
Reported: 2003-10-30 06:37 UTC by Andrew Pinski
Modified: 2005-04-06 18:26 UTC (History)
1 user (show)

See Also:
Host:
Target: powerpc-*-*
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-01-05 02:42:34


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2003-10-30 06:37:59 UTC
This is to keep track of two patches: <http://gcc.gnu.org/ml/gcc-patches/2003-10/
msg02412.html> and <http://gcc.gnu.org/ml/gcc-patches/2003-10/msg02414.html> which 
have the mod Value based feeedback work on PPC and other targets that do not have a MOD or an 
UMOD rtl.  Note I will fix up the first patch to use find_reg_equiv_note instead.
Comment 1 Andrew Pinski 2004-02-08 06:45:17 UTC
Need to send updated patches in.
Comment 2 Andrew Pinski 2004-02-14 21:12:15 UTC
I will ask for a ping soon on these patches.
Comment 3 Andrew Pinski 2004-04-05 00:51:51 UTC
Waiting to VPT is implemented on the tree level, then this does not need to happen at all.
Comment 4 Andrew Pinski 2004-05-25 14:22:57 UTC
Suspending untill VPT is implemented on the tree level.
Comment 5 Andrew Pinski 2005-04-06 18:26:08 UTC
Fixed in 4.1.0 by:
2005-03-29  Dale Johannesen <dalej@apple.com>

        * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
        $(TREE_H) and $(COVERAGE_H).
        * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
        * opts.c (common_handle_option): Enable tree-based value transforms.
        * toplev.c (process_options): Ditto.
        * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
        refers to references to this type.
        * tree-flow.h: (struct stmt_ann_d): Add histograms field.
        * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
        for may_be_more, may_be_less.
        (rtl_gen_pow2_profiler): Adjust.
        (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
        (rtl_gen_one_value_profiler): Adjust.
        (rtl_gen_const_delta_profiler): Adjust.
        * tree-profile.c (tree_gen_interval_profiler): Implement.
        (tree_gen_pow2_profiler): Ditto.
	......