diff options
author | Andrew Pinski <apinski@cavium.com> | 2012-04-24 08:43:33 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@cavium.com> | 2012-04-24 08:43:33 +0000 |
commit | 96f8e14bae5c4ee6902d594cc51bea870ec96613 (patch) | |
tree | 3be390f2ab14eb44a93f3a755ff5a0cdf9a0dc45 /gcc/tree-ssa-forwprop.c | |
parent | 2a4397c6886b64cb32f8f6a31600021cd0ec71fb (diff) |
2012-04-24 Andrew Pinski <apinski@cavium.com>
* tree-ssa-forwprop.c (simplify_bitwise_binary):
Don't directly use def1/def2.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@186757 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-forwprop.c')
-rw-r--r-- | gcc/tree-ssa-forwprop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c index 776d2f1bd78..3f00b1d42c4 100644 --- a/gcc/tree-ssa-forwprop.c +++ b/gcc/tree-ssa-forwprop.c @@ -1913,10 +1913,10 @@ simplify_bitwise_binary (gimple_stmt_iterator *gsi) /* Simplify (A & B) OP0 (C & B) to (A OP0 C) & B. */ if (def1_code == def2_code && def1_code == BIT_AND_EXPR - && operand_equal_for_phi_arg_p (gimple_assign_rhs2 (def1), - gimple_assign_rhs2 (def2))) + && operand_equal_for_phi_arg_p (def1_arg2, + def2_arg2)) { - tree b = gimple_assign_rhs2 (def1); + tree b = def1_arg2; tree a = def1_arg1; tree c = def2_arg1; tree inner = fold_build2 (code, TREE_TYPE (arg2), a, c); |