diff --git a/gcc/loop.c b/gcc/loop.c
index d3651638ad34fdb43e0777a0273af7c81bcd12b9..90bc53320b8a399e1163a3600723fc6b09b98ccd 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -7300,7 +7300,7 @@ insert_bct (loop_start, loop_end)
      This check is repeated from analyze_loop_iterations (),
      because unrolling might have changed that.  */
   if (GET_CODE (PREV_INSN (loop_end)) != JUMP_INSN
-      || !is_condjump_p (PREV_INSN (loop_end))) {
+      || !condjump_p (PREV_INSN (loop_end))) {
     if (loop_dump_stream)
       fprintf (loop_dump_stream,
 	      "insert_bct: not instrumenting BCT because of invalid branch\n");