diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-02-19 19:19:06 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-02-19 19:19:06 +0100 |
commit | 8ac074e8e2e321aa7e73d416f4e598a2be89e8cd (patch) | |
tree | 3295b26ad7c183493a05ad413c998678b6207f0c | |
parent | 488d283713843caec66bb4978540ebf4fe61e119 (diff) | |
download | gcc-8ac074e8e2e321aa7e73d416f4e598a2be89e8cd.zip gcc-8ac074e8e2e321aa7e73d416f4e598a2be89e8cd.tar.gz gcc-8ac074e8e2e321aa7e73d416f4e598a2be89e8cd.tar.bz2 |
re PR middle-end/42233 (c++ builtin_expect code generation regression)
PR middle-end/42233
* dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
From-SVN: r156903
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/dojump.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c516bb8..6423c36 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-02-19 Jakub Jelinek <jakub@redhat.com> + + PR middle-end/42233 + * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority. + 2010-02-19 Richard Guenther <rguenther@suse.de> PR tree-optimization/42916 diff --git a/gcc/dojump.c b/gcc/dojump.c index 3d03b4c..c2ee427 100644 --- a/gcc/dojump.c +++ b/gcc/dojump.c @@ -411,7 +411,8 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label, int prob) break; case TRUTH_NOT_EXPR: - do_jump (TREE_OPERAND (exp, 0), if_true_label, if_false_label, prob); + do_jump (TREE_OPERAND (exp, 0), if_true_label, if_false_label, + inv (prob)); break; case COND_EXPR: |