aboutsummaryrefslogtreecommitdiff
path: root/gcc/doloop.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-02-03 05:39:57 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-02-03 05:39:57 +0000
commit60c81c899553a6673c4b2e6f0ba26c7b56abbf9c (patch)
tree83526b7a4efa9bcc4ee6c55a45f9df95a68c2a50 /gcc/doloop.c
parent2fb00d7f2b6e2b00f011b1ca6ee471a76e1c2542 (diff)
downloadgcc-60c81c899553a6673c4b2e6f0ba26c7b56abbf9c.zip
gcc-60c81c899553a6673c4b2e6f0ba26c7b56abbf9c.tar.gz
gcc-60c81c899553a6673c4b2e6f0ba26c7b56abbf9c.tar.bz2
doloop.c, [...]: Use const0_rtx instead of GEN_INT (0).
* doloop.c, optabs.c, regmove.c, sched-deps.c, config/i386/i386.c, config/i386/i386.md: Use const0_rtx instead of GEN_INT (0). Do the same for other constants that are readily available. From-SVN: r77160
Diffstat (limited to 'gcc/doloop.c')
-rw-r--r--gcc/doloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/doloop.c b/gcc/doloop.c
index 3ae6281..6d4840a 100644
--- a/gcc/doloop.c
+++ b/gcc/doloop.c
@@ -1,5 +1,5 @@
/* Perform doloop optimizations
- Copyright (C) 1999, 2000, 2001, 2002, 2003
+ Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz)
@@ -475,7 +475,7 @@ doloop_modify (const struct loop *loop, rtx iterations, rtx iterations_max,
count = GEN_INT (INTVAL (count) - 1);
else
count = expand_simple_binop (GET_MODE (counter_reg), MINUS,
- count, GEN_INT (1),
+ count, const1_rtx,
0, 0, OPTAB_LIB_WIDEN);
}