Looks good. Before you commit, please move the 'branch.prof' input for the test under an "Inputs" subdirectory of the test directory. (This should make it "test/Transforms/SampleProfile/Inputs/branch.prof") Looking forward to the next patch! =D http://llvm-reviews.chandlerc.com/D2058