[llvm] [InstrProf] Change step from 64-bit to pointer-sized int (PR #83239)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 1 07:57:03 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 6008cd40b7bbdc66555550c2e38648d5ce99cc78 b7407d3a9c93885ccfd027b1cc32f63636acf0ce -- llvm/include/llvm/IR/IntrinsicInst.h llvm/lib/IR/IntrinsicInst.cpp llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/IR/IntrinsicInst.cpp b/llvm/lib/IR/IntrinsicInst.cpp
index 953dcd2a57..7fe7f89bc4 100644
--- a/llvm/lib/IR/IntrinsicInst.cpp
+++ b/llvm/lib/IR/IntrinsicInst.cpp
@@ -289,7 +289,7 @@ Value *InstrProfIncrementInst::getStep() const {
const Module *M = getModule();
LLVMContext &Context = M->getContext();
const auto &DL = M->getDataLayout();
- Type* LargestLegalIntTy = DL.getLargestLegalIntType(Context);
+ Type *LargestLegalIntTy = DL.getLargestLegalIntType(Context);
if (LargestLegalIntTy) {
return ConstantInt::get(LargestLegalIntTy, 1);
``````````
</details>
https://github.com/llvm/llvm-project/pull/83239
More information about the llvm-commits
mailing list