[all-commits] [llvm/llvm-project] 946831: [NFC] Rename Function::isDebugInfoForProfiling to ...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Wed Dec 21 18:40:29 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 946831ea2d7717a56383e284426527bc6de3808d
      https://github.com/llvm/llvm-project/commit/946831ea2d7717a56383e284426527bc6de3808d
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2022-12-21 (Wed, 21 Dec 2022)

  Changed paths:
    M llvm/include/llvm/IR/Function.h
    M llvm/lib/CodeGen/MIRFSDiscriminator.cpp
    M llvm/lib/IR/Metadata.cpp
    M llvm/lib/Transforms/Utils/LoopUnroll.cpp
    M llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.cpp

  Log Message:
  -----------
  [NFC] Rename Function::isDebugInfoForProfiling to shouldEmit[...]

The function name was misleading - the expectation set both by the name
and by other members of Function (like isDeclaration or isIntrinsic)
would be that the function somehow would "be" "debug info for
profiling". But that's not the case - the property indicates (as the
comment over the declaration also explains) whether debug info should be
emitted (for profiling).




More information about the All-commits mailing list