HomePhabricator

[PGO] Attach appropriate funclet operand bundles to value profiling…

Authored by andrew.w.kaylor on Jan 24 2020, 11:19 AM.

Description

[PGO] Attach appropriate funclet operand bundles to value profiling instrumentation calls

Patch by Chris Chrulski

When generating value profiling instrumentation, ensure the call gets the
correct funclet token, otherwise WinEHPrepare will turn the call (and all
subsequent instructions) into unreachable.

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