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 8ef355aa433a44220eaf0062039b53770ebb9835 
1379952ca664e04c4aa6806a724bcda1b0fc1a48 --extensions h,cpp -- 
llvm/include/llvm/Transforms/Utils/AssignGUID.h 
llvm/lib/Transforms/Utils/AssignGUID.cpp 
llvm/include/llvm/Analysis/CtxProfAnalysis.h llvm/include/llvm/IR/GlobalValue.h 
llvm/lib/Analysis/CtxProfAnalysis.cpp llvm/lib/IR/Globals.cpp 
llvm/lib/Passes/PassBuilder.cpp llvm/lib/Passes/PassBuilderPipelines.cpp 
llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp 
llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp 
llvm/lib/Transforms/Utils/CallPromotionUtils.cpp 
llvm/lib/Transforms/Utils/InlineFunction.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/Analysis/CtxProfAnalysis.h 
b/llvm/include/llvm/Analysis/CtxProfAnalysis.h
index 484cc638a2..2e0b97b384 100644
--- a/llvm/include/llvm/Analysis/CtxProfAnalysis.h
+++ b/llvm/include/llvm/Analysis/CtxProfAnalysis.h
@@ -53,9 +53,7 @@ public:
 
   const PGOCtxProfile &profiles() const { return Profiles; }
 
-  bool isFunctionKnown(const Function &F) const {
-    return F.getGUID() != 0;
-  }
+  bool isFunctionKnown(const Function &F) const { return F.getGUID() != 0; }
 
   StringRef getFunctionName(GlobalValue::GUID GUID) const {
     auto It = FuncInfo.find(GUID);
diff --git a/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp 
b/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
index d5840673ad..6912338ce5 100644
--- a/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
+++ b/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
@@ -655,7 +655,6 @@ CallBase *llvm::promoteCallWithIfThenElse(CallBase &CB, 
Function &Callee,
     // times, and the indirect BB, IndirectCount times
     Ctx.counters()[DirectID] = DirectCount;
     Ctx.counters()[IndirectID] = IndirectCount;
-
   };
   CtxProf.update(ProfileUpdater, Caller);
   return &DirectCall;

``````````

</details>


https://github.com/llvm/llvm-project/pull/133682
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to