diff options
author | Amir Ayupov <aaupov@fb.com> | 2024-05-19 20:15:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-19 20:15:31 -0700 |
commit | 91423d71938d7a1dba27188e6d854148a750a3dd (patch) | |
tree | 7f9e26f571d569700bbb4a2a186986f2aaa44382 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | fc0144a30cf20d6405411da141d11bfde143d3d2 (diff) | |
download | llvm-91423d71938d7a1dba27188e6d854148a750a3dd.zip llvm-91423d71938d7a1dba27188e6d854148a750a3dd.tar.gz llvm-91423d71938d7a1dba27188e6d854148a750a3dd.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions