[all-commits] [llvm/llvm-project] de0abc: [BOLT][NFC] Simplify YAMLProfileWriter::convert

Amir Ayupov via All-commits all-commits at lists.llvm.org
Wed Mar 20 14:39:51 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de0abc0983d355bbd971c5c571ba4c209a0c63ea
      https://github.com/llvm/llvm-project/commit/de0abc0983d355bbd971c5c571ba4c209a0c63ea
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2024-03-20 (Wed, 20 Mar 2024)

  Changed paths:
    M bolt/lib/Profile/YAMLProfileWriter.cpp

  Log Message:
  -----------
  [BOLT][NFC] Simplify YAMLProfileWriter::convert

Use `getAnnotationWithDefault` instead of testing if the annotation is
set. If the default value is used, and `CSI.Count` is set to zero, the
target is discarded by a check below.

Test Plan: NFC

Reviewers: maksfb, dcci, rafaelauler, ayermolo

Reviewed By: ayermolo

Pull Request: https://github.com/llvm/llvm-project/pull/82129



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