HomePhabricator

[AFDO] Merge function attributes after inlining

Authored by kazu on Jul 9 2021, 4:47 PM.

Description

[AFDO] Merge function attributes after inlining

This patch teaches the sample profile loader to merge function
attributes after inlining functions.

Without this patch, the compiler could inline a function requiring the
512-bit vector width into its caller without merging function
attributes, triggering a failure during instruction selection.

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