[llvm] [ubsan][pgo] Pass to remove ubsan checks based on profile data (PR #83471)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 17:49:58 PST 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 ccf0c8da1a0e6eea5e31fd5872ac864bf7005147 2878c1c786383ad181aff2f180e4c0bace63f1db -- llvm/include/llvm/Transforms/Instrumentation/RemoveTrapsPass.h llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp llvm/lib/Passes/PassBuilder.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp b/llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp
index 52dba021b3..871095e007 100644
--- a/llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp
+++ b/llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp
@@ -96,5 +96,5 @@ PreservedAnalyses RemoveTrapsPass::run(Function &F,
   BlockFrequencyInfo &BFI = AM.getResult<BlockFrequencyAnalysis>(F);
 
   return removeUbsanTraps(F, BFI, PSI) ? PreservedAnalyses::none()
-                                             : PreservedAnalyses::all();
+                                       : PreservedAnalyses::all();
 }

``````````

</details>


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


More information about the llvm-commits mailing list