summaryrefslogtreecommitdiffstats
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 24f6b02ec70..96d46263df2 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -5007,16 +5007,6 @@ tree_swap_operands_p (tree arg0, tree arg1)
if (TREE_CONSTANT (arg0))
return 1;
- if (DECL_P (arg1))
- return 0;
- if (DECL_P (arg0))
- return 1;
-
- if (TREE_CODE (arg1) == SAVE_EXPR)
- return 0;
- if (TREE_CODE (arg0) == SAVE_EXPR)
- return 1;
-
return 0;
}
OpenPOWER on IntegriCloud