[all-commits] [llvm/llvm-project] c2aa06: [YAML][NFC] Replace if-else with switch in createH...

Amir Ayupov via All-commits all-commits at lists.llvm.org
Thu Jul 6 10:18:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2aa0616cdd2b64912e07da8894be3d37e43685d
      https://github.com/llvm/llvm-project/commit/c2aa0616cdd2b64912e07da8894be3d37e43685d
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2023-07-06 (Thu, 06 Jul 2023)

  Changed paths:
    M llvm/lib/Support/YAMLTraits.cpp

  Log Message:
  -----------
  [YAML][NFC] Replace if-else with switch in createHNodes

BOLT YAML profile reading time gets marginally faster (14.1572->13.9207 s) for
a large YAML profile (121MB/31K functions). Not claiming stat significance
though.

Reviewed By: hintonda

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




More information about the All-commits mailing list