eraman added a comment. The test should be in test/Transforms/SampleProfile/ . I pointed to the test case for reference. You don't need to add a new test case. You can modify an existing test case to test that the summary is available. http://reviews.llvm.org/D21702