summaryrefslogtreecommitdiff
path: root/gcc/modulo-sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/modulo-sched.c')
-rw-r--r--gcc/modulo-sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c
index bd49f9f9b6a..6089580ed4d 100644
--- a/gcc/modulo-sched.c
+++ b/gcc/modulo-sched.c
@@ -353,7 +353,7 @@ const_iteration_count (rtx count_reg, basic_block pre_header,
{
rtx pat = single_set (insn);
- if (GET_CODE (SET_SRC (pat)) == CONST_INT)
+ if (CONST_INT_P (SET_SRC (pat)))
{
*count = INTVAL (SET_SRC (pat));
return insn;