Fix usage of POW2 histogram
commit7d4f18f5ca7ffaf31fdcd834ba7c1aa7dcffa06e
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Aug 2016 20:57:39 +0000 (9 20:57 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Aug 2016 20:57:39 +0000 (9 20:57 +0000)
treedbb4966972e8a87470d386651e906c5035e0aec7
parentdefa7026d161f8d0a3a6c54516e11e7121b86702
Fix usage of POW2 histogram

* value-prof.c (gimple_divmod_values_to_profile): Do not
instrument MOD histogram if a value is not a SSA name.
* gcc.dg/tree-prof/val-prof-9.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239305 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/val-prof-9.c [new file with mode: 0644]
gcc/value-prof.c