diff options
author | Mircea Trofin <mtrofin@google.com> | 2022-12-21 18:36:59 -0800 |
---|---|---|
committer | Mircea Trofin <mtrofin@google.com> | 2022-12-21 18:36:59 -0800 |
commit | 946831ea2d7717a56383e284426527bc6de3808d (patch) | |
tree | 754ec840fd3b57429c07a43f139c7b23468d7849 /llvm/lib/Transforms/Utils/LoopUnroll.cpp | |
parent | b9a9b0fb87af81bae0f3837840de7c164b8f5faf (diff) | |
download | llvm-946831ea2d7717a56383e284426527bc6de3808d.zip llvm-946831ea2d7717a56383e284426527bc6de3808d.tar.gz llvm-946831ea2d7717a56383e284426527bc6de3808d.tar.bz2 |
[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).
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnroll.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnroll.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnroll.cpp b/llvm/lib/Transforms/Utils/LoopUnroll.cpp index 9fe530b..919a752 100644 --- a/llvm/lib/Transforms/Utils/LoopUnroll.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnroll.cpp @@ -508,7 +508,8 @@ LoopUnrollResult llvm::UnrollLoop(Loop *L, UnrollLoopOptions ULO, LoopInfo *LI, // When a FSDiscriminator is enabled, we don't need to add the multiply // factors to the discriminators. - if (Header->getParent()->isDebugInfoForProfiling() && !EnableFSDiscriminator) + if (Header->getParent()->shouldEmitDebugInfoForProfiling() && + !EnableFSDiscriminator) for (BasicBlock *BB : L->getBlocks()) for (Instruction &I : *BB) if (!isa<DbgInfoIntrinsic>(&I)) |