]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add missing edge probability in simd_clone_adjust
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Aug 2017 07:27:05 +0000 (07:27 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Aug 2017 07:27:05 +0000 (07:27 +0000)
commit43eb6d3b22ec548746b59035dc4b01a590d5e0d1
tree6929c721defce86705af92688565a7060d243a40
parent21d3ccaff75133fbb3f3a736f2a2dee3f7ce610d
Add missing edge probability in simd_clone_adjust

Currently we generate an if with probability set on only one of the two edges:
  <bb 5> [0.00%] [count: INV]:
  _5 = mask.3[iter.6_3];
  if (_5 == 0)
    goto <bb 6>; [INV] [count: INV]
  else
    goto <bb 2>; [100.00%] [count: INV]

Add the missing edge probability, and set the split to unlikely/likely:
  if (_5 == 0)
    goto <bb 6>; [19.99%] [count: INV]
  else
    goto <bb 2>; [80.01%] [count: INV]

2017-08-04  Tom de Vries  <tom@codesourcery.com>

* omp-simd-clone.c (simd_clone_adjust): Add missing edge probability.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250865 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/omp-simd-clone.c