diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-02-19 13:47:18 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-02-19 13:47:18 +0100 |
commit | 2bdd49f4b399a41b1bb4129961e64da7ea152a93 (patch) | |
tree | ebd1d507361a10ee171d0870153967f25ddf0fe9 | |
parent | 415ed6120471fdb77abbbf74faf3bb40b3c47780 (diff) | |
download | gcc-2bdd49f4b399a41b1bb4129961e64da7ea152a93.zip gcc-2bdd49f4b399a41b1bb4129961e64da7ea152a93.tar.gz gcc-2bdd49f4b399a41b1bb4129961e64da7ea152a93.tar.bz2 |
re PR middle-end/42233 (c++ builtin_expect code generation regression)
PR middle-end/42233
* loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
From-SVN: r156893
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/loop-doloop.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 607c318..080d26d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/loop-doloop.c b/gcc/loop-doloop.c index 0fa0fe2..d1bd285 100644 --- a/gcc/loop-doloop.c +++ b/gcc/loop-doloop.c @@ -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)) |