summaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 180c31e9635..e2a04e59398 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -4338,7 +4338,7 @@ fold_rtx (x, insn)
{
if (const_arg0)
return const1_rtx;
- if (!flag_gcse)
+ if (optimize == 0 || !flag_gcse)
return const0_rtx;
}
break;