[all-commits] [llvm/llvm-project] 91423d: [BOLT][NFC] Don't assign YAML profile to functions...

Amir Ayupov via All-commits all-commits at lists.llvm.org
Sun May 19 20:15:53 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 91423d71938d7a1dba27188e6d854148a750a3dd
      https://github.com/llvm/llvm-project/commit/91423d71938d7a1dba27188e6d854148a750a3dd
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2024-05-19 (Sun, 19 May 2024)

  Changed paths:
    M bolt/lib/Profile/YAMLProfileReader.cpp
    A bolt/test/X86/yaml-non-simple.test

  Log Message:
  -----------
  [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



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list