Unverified Commit 91423d71 authored by Amir Ayupov's avatar Amir Ayupov Committed by GitHub
Browse files

[BOLT][NFC] Don't assign YAML profile to functions with no CFG (#92487)

YAML profile for non-simple functions without CFG is
  1) useless for optimizations,
  2) can't be attached, similar to fdata profile,
  3) would be reported as invalid/stale even if the profile is valid.

Don't attempt to attach the profile in this case, aligning the behavior
to DataReader.

Test Plan: added yaml-non-simple.test
parent fc0144a3
Pipeline #2389 failed with stages
in 0 seconds
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment