aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorYi Yang <ahyangyi@google.com>2014-08-08 12:06:51 -0500
committerYi Yang <ahyangyi2@gcc.gnu.org>2014-08-08 12:06:51 -0500
commit7ca26091fc02486e0fe9469fa8b8dc8bc4ab442c (patch)
tree47180ad658aa4f06846071efc5b422b6def99bf6 /gcc/predict.c
parent207c68cd616b7739870933158e976881d1b2438e (diff)
downloadgcc-7ca26091fc02486e0fe9469fa8b8dc8bc4ab442c.zip
gcc-7ca26091fc02486e0fe9469fa8b8dc8bc4ab442c.tar.gz
gcc-7ca26091fc02486e0fe9469fa8b8dc8bc4ab442c.tar.bz2
Remove a redundant assignment "*predictor = PRED_BUILTIN_EXPECT;", since six
lines later *predictor is assigned again. -- 2014-08-08 Yi Yang <ahyangyi@google.com> gcc: * predict.c (expr_expected_value_1): Remove the redundant assignment. From-SVN: r213760
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 03657c9..f7b86f1 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -1859,7 +1859,6 @@ expr_expected_value_1 (tree type, tree op0, enum tree_code code,
return val;
if (predictor)
{
- *predictor = PRED_BUILTIN_EXPECT;
tree val2 = gimple_call_arg (def, 2);
gcc_assert (TREE_CODE (val2) == INTEGER_CST
&& tree_fits_uhwi_p (val2)