aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2013-10-02 19:18:17 +0000
committerTeresa Johnson <tejohnson@gcc.gnu.org>2013-10-02 19:18:17 +0000
commit99206ca90b8e53db1461366ac4ee4116a2673056 (patch)
tree948779eafcef5cd8b6843ba98bb5ae65bea1435b /gcc/go
parent56e82b14747c3d14a9e2ffec324aa338f0693020 (diff)
downloadgcc-99206ca90b8e53db1461366ac4ee4116a2673056.zip
gcc-99206ca90b8e53db1461366ac4ee4116a2673056.tar.gz
gcc-99206ca90b8e53db1461366ac4ee4116a2673056.tar.bz2
This patch fixes an issue where expansion of an ORIF expression arbitrarily...
This patch fixes an issue where expansion of an ORIF expression arbitrarily applied the probability that the entire condition was true to just the first condition. When the ORIF true probability was 100%, this resulted in the second condition's jump being given a count of zero (since the first condition's jump got 100% of the count), leading to incorrect function splitting when it had a non-zero probability in reality. Since there currently isn't better information about which condition resulted in the ORIF being true, apply a 50-50 probability that it is the first vs. second condition that caused the entire expression to be true, so that neither condition's true label ends up as a 0-count bb. An equivalent fix is made for ANDIF expansion. 2013-10-02 Teresa Johnson <tejohnson@google.com> * dojump.c (do_jump_1): Divide probability between both conditions of a TRUTH_ORIF_EXPR. From-SVN: r203126
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions