aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
AgeCommit message (Collapse)AuthorFilesLines
2004-06-16tree.h (PHI_CHAIN): New.Steven Bosscher1-1/+1
* tree.h (PHI_CHAIN): New. * (tree-cfg.c, tree-dfa.c, tree-flow-inline.h, tree-into-ssa.c, tree-outof-ssa.c, tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-live.c, tree-ssa-loop.c, tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa.c, tree-tailcall.c): Use PHI_CHAIN instead of TREE_CHAIN when traversing a list of PHI_NODEs. From-SVN: r83273
2004-05-19tree-ssa-phiopt.c (value_replacement): Handle the case where the desired ↵Jeff Law1-0/+13
edge out of COND_BLOCK reaches OTHER_BLOCK... * tree-ssa-phiopt.c (value_replacement): Handle the case where the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than BB directly. From-SVN: r82031
2004-05-18tree-ssa-phiopt.c (abs_replacement): New function.Andrew Pinski1-20/+207
* tree-ssa-phiopt.c (abs_replacement): New function. (empty_block_p): New function extracted from... (candidate_bb_for_phi_optimization): Break out empty block test. (conditional_replacement): Use empty_block_p. (value_replacement): Similarly. * gcc.dg/tree-ssa/20040514-2.c: Update expected output. * gcc.dg/tree-ssa/20040518-2.c: New test. Co-Authored-By: Jeff Law <law@redhat.com> From-SVN: r82017
2004-05-18Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.Andrew Pinski1-14/+101
* Makefile.in (tree-ssa-phiopt.o): Depends on flags.h. * tree-ssa-phiopt.c: Include flags.h. (conditional_replacement): Remove argument names from prototype. Minor formatting and comment fixes. (tree_ssa_phiopt): If conditional_replacement returns false, then call value_replacement. (value_replacement): New function. * gcc.dg/tree-ssa/20040518-1.c: New test. Co-Authored-By: Jeff Law <law@redhat.com> From-SVN: r81999
2004-05-18tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted from ↵Jeff Law1-60/+107
conditional_replacement. * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted from conditional_replacement. (candidate_bb_for_phi_optimization): Similarly. (conditional_replacement): Use replace_phi_with_stmt and candidate_bb_for_phi_optimization. From-SVN: r81996
2004-05-18* tree-ssa-phiopt.c: Fix various formatting issues.Jeff Law1-79/+76
From-SVN: r81995
2004-05-14re PR tree-optimization/14466 (missed PHI optimization (different types))Andrew Pinski1-14/+54
2004-05-14 Andrew Pinski <pinskia@physics.uc.edu> PR optimization/14466 * tree-complex.c (make_temp): Remove. (gimplify_val): Replace make_temp with make_rename_temp and add NULL as the second argument. (expand_complex_div_wide): Likewise. * tree-dfa.c (make_rename_temp): New function. * tree-flow.h (make_rename_temp): Declare. * tree-sra.c (make_temp): Remove. (lookup_scalar): Replace make_temp with make_rename_temp. (create_scalar_copies): Likewise. * tree-ssa-phiopt.c (conditional_replacement): When we get non gimple create a temporary variable to hold the casted expression. 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu> PR optimization/14466 * gcc.dg/tree-ssa/20040514-1.c: New test. From-SVN: r81847
2004-05-13Merge tree-ssa-20020619-branch into mainline.Diego Novillo1-0/+306
From-SVN: r81764