mirror of git://gcc.gnu.org/git/gcc.git
tree-ssa-forwprop.c (simplify_bitwise_binary): Don't directly use def1/def2.
2012-04-24 Andrew Pinski <apinski@cavium.com> * tree-ssa-forwprop.c (simplify_bitwise_binary): Don't directly use def1/def2. From-SVN: r186757
This commit is contained in:
parent
e1b435ad06
commit
8eddb62513
|
@ -1,3 +1,8 @@
|
||||||
|
2012-04-24 Andrew Pinski <apinski@cavium.com>
|
||||||
|
|
||||||
|
* tree-ssa-forwprop.c (simplify_bitwise_binary):
|
||||||
|
Don't directly use def1/def2.
|
||||||
|
|
||||||
2012-04-24 Richard Guenther <rguenther@suse.de>
|
2012-04-24 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
PR tree-optimization/53098
|
PR tree-optimization/53098
|
||||||
|
|
|
@ -1913,10 +1913,10 @@ simplify_bitwise_binary (gimple_stmt_iterator *gsi)
|
||||||
/* Simplify (A & B) OP0 (C & B) to (A OP0 C) & B. */
|
/* Simplify (A & B) OP0 (C & B) to (A OP0 C) & B. */
|
||||||
if (def1_code == def2_code
|
if (def1_code == def2_code
|
||||||
&& def1_code == BIT_AND_EXPR
|
&& def1_code == BIT_AND_EXPR
|
||||||
&& operand_equal_for_phi_arg_p (gimple_assign_rhs2 (def1),
|
&& operand_equal_for_phi_arg_p (def1_arg2,
|
||||||
gimple_assign_rhs2 (def2)))
|
def2_arg2))
|
||||||
{
|
{
|
||||||
tree b = gimple_assign_rhs2 (def1);
|
tree b = def1_arg2;
|
||||||
tree a = def1_arg1;
|
tree a = def1_arg1;
|
||||||
tree c = def2_arg1;
|
tree c = def2_arg1;
|
||||||
tree inner = fold_build2 (code, TREE_TYPE (arg2), a, c);
|
tree inner = fold_build2 (code, TREE_TYPE (arg2), a, c);
|
||||||
|
|
Loading…
Reference in New Issue