]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/42233 (c++ builtin_expect code generation regression)
authorJakub Jelinek <jakub@redhat.com>
Fri, 19 Feb 2010 12:47:18 +0000 (13:47 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 19 Feb 2010 12:47:18 +0000 (13:47 +0100)
PR middle-end/42233
* loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.

From-SVN: r156893

gcc/ChangeLog
gcc/loop-doloop.c

index 607c31844a6a273def794f12433e1a75c4d980c3..080d26d3d38a329fc22ea4778d052b99df995201 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-19  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/42233
+       * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
+
 2010-02-19  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/42944
index 0fa0fe21e51d153a820f30d16ec632306220ec90..d1bd28559154bfc2c0bff4ecfd22a540347b68a4 100644 (file)
@@ -1,6 +1,6 @@
 /* Perform doloop optimizations
-   Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation,
-   Inc.
+   Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010
+   Free Software Foundation, Inc.
    Based on code by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz)
 
 This file is part of GCC.
@@ -291,7 +291,8 @@ add_test (rtx cond, edge *e, basic_block dest)
   op0 = force_operand (op0, NULL_RTX);
   op1 = force_operand (op1, NULL_RTX);
   label = block_label (dest);
-  do_compare_rtx_and_jump (op0, op1, code, 0, mode, NULL_RTX, NULL_RTX, label);
+  do_compare_rtx_and_jump (op0, op1, code, 0, mode, NULL_RTX,
+                          NULL_RTX, label, -1);
 
   jump = get_last_insn ();
   if (!jump || !JUMP_P (jump))