Ignore PhiNodes when mapping sample profile data
authorDavid Callahan <dcallahan@fb.com>
Mon, 14 Jan 2019 19:05:59 +0000 (19:05 +0000)
committerDavid Callahan <dcallahan@fb.com>
Mon, 14 Jan 2019 19:05:59 +0000 (19:05 +0000)
commit957795973b98a52b770f9114602fc9e170c63233
treefb9bacd676c529c38eca59ab0cc761ce7aa40299
parent1f3ab98aca01ca5b1a01f69ee13aa5fa8ac2331a
Ignore PhiNodes when mapping sample profile data

Summary: Like branch instructions, phi nodes frequently do not have debug information related to the block they are in and so they should be ignored.

Reviewers: danielcdh, twoh, Kader, wmi

Reviewed By: wmi

Subscribers: aprantl, llvm-commits

Differential Revision: https://reviews.llvm.org/D55094

llvm-svn: 351102
llvm/lib/Transforms/IPO/SampleProfile.cpp