Fix usage of POW2 histogram
authorMartin Liska <mliska@suse.cz>
Tue, 9 Aug 2016 20:57:39 +0000 (22:57 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 9 Aug 2016 20:57:39 +0000 (20:57 +0000)
commitab50a2153e0602a0d4384b0de390fb7322676479
treedbb4966972e8a87470d386651e906c5035e0aec7
parentdcb1e1379ea52c33e5025d6e5842c43888888afa
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.

From-SVN: r239305
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/val-prof-9.c [new file with mode: 0644]
gcc/value-prof.c