This patch enables the instrumentation function entry BB by default in
IR PGO. This will slow down the instrumentation for some cases.
One can use the internal option "-mllvm -pgo-instrument-entry=false"
to disable it.
For single threaded programs, the slowdown should be very minimum.
The benefit of always instrumenting function entry BB is that we
can know the function entry count by form the profile and this often
facilitates some profile offline processing.
This patch also bumps up the index profile version, from 6 to 7.
Strictly speaking, this is not needed -- the instrumentation order depends
on the implementation and there is no guarantee of the instrumentation order.
We bump this up just to prevent some potential breakages (performance wise)
for people using some stored (old) profiles.
This patch will not change the behavior if the profile version is lower
than the new version (7) -- unless the internal option is explicitly specified.
For the index profile with version 7 or above, This patch assumes that the
function entry BB by default. Again the internal option
"-mllvm -pgo-instrument-entry" takes precedence over the index profile version.