[PATCH] Use discriminator information in sample profiles.

Diego Novillo dnovillo at google.com
Fri Feb 21 05:59:32 PST 2014


Hi chandlerc,

When the sample profiles include discriminator information,
use the discriminator values to distinguish instruction weights
in different basic blocks.

This modifies the BodySamples mapping to map <line, discriminator> pairs
to weights. Instructions on the same line but different blocks, will
use different discriminator values. This, in turn, means that the blocks
may have different weights.

I am currently running performance benchmarks to measure the performance
impact of this change.

http://llvm-reviews.chandlerc.com/D2857

Files:
  lib/Transforms/Scalar/SampleProfile.cpp
  test/Transforms/SampleProfile/Inputs/calls.prof
  test/Transforms/SampleProfile/Inputs/discriminator.prof
  test/Transforms/SampleProfile/branch.ll
  test/Transforms/SampleProfile/calls.ll
  test/Transforms/SampleProfile/discriminator.ll
  test/Transforms/SampleProfile/propagate.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2857.1.patch
Type: text/x-patch
Size: 23821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140221/90ec053d/attachment.bin>


More information about the llvm-commits mailing list