[llvm] [Coro] Amortize debug info processing cost in CoroSplit (PR #109032)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 17 12:25:04 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 43f044ba7ea2cd668805c01055eb2dff70532ba3 4c76540db1990a49b6126de83c7ccd12e28e8cb0 --extensions cpp,h -- llvm/include/llvm/Analysis/DebugInfoCache.h llvm/lib/Analysis/DebugInfoCache.cpp llvm/unittests/Analysis/DebugInfoCacheTest.cpp llvm/include/llvm/IR/DebugInfo.h llvm/include/llvm/IR/ValueMap.h llvm/include/llvm/Linker/IRMover.h llvm/include/llvm/Transforms/Utils/Cloning.h llvm/include/llvm/Transforms/Utils/ValueMapper.h llvm/lib/Analysis/CGSCCPassManager.cpp llvm/lib/Linker/IRMover.cpp llvm/lib/Passes/PassBuilder.cpp llvm/lib/Transforms/Coroutines/CoroSplit.cpp llvm/lib/Transforms/Utils/CloneFunction.cpp llvm/lib/Transforms/Utils/ValueMapper.cpp llvm/unittests/Analysis/CGSCCPassManagerTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 0183ed3abc..f8ad06ecfc 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -314,7 +314,6 @@ void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
     if (Changes == CloneFunctionChangeType::DifferentModule) {
       assert(NewFunc->getParent() &&
              "Need parent of new function to maintain debug info invariants");
-
     }
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/109032


More information about the llvm-commits mailing list