[all-commits] [llvm/llvm-project] c0c42c: [SandboxIR][NFC] Change order of ifs in Context::g...

vporpo via All-commits all-commits at lists.llvm.org
Wed Feb 19 13:09:06 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c0c42c8b3213520700f15587ab8aa4477a286ff9
      https://github.com/llvm/llvm-project/commit/c0c42c8b3213520700f15587ab8aa4477a286ff9
  Author: vporpo <vporpodas at google.com>
  Date:   2025-02-19 (Wed, 19 Feb 2025)

  Changed paths:
    M llvm/lib/SandboxIR/Context.cpp

  Log Message:
  -----------
  [SandboxIR][NFC] Change order of ifs in Context::getOrCreateValueInternal() (#127891)

Move the most common if statement to the top and the least common ones
to the bottom. This should save CPU cycles during compilation.

This patch also prefixes the llvm variables with the LLVM prefix to make
the naming convention in this function more uniform. For example `C` to
`LLVMC`.



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