[llvm] SimplifyLibCalls: Use default globals address space when building new global strings. (PR #118729)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 02:26:07 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 df43af40ec1d139caa5cb870c7e35ff6b91cdbc3 fd05e8603e6114c7370cb21f8e4b0952be9ecb8c --extensions cpp,h -- llvm/include/llvm/Transforms/Utils/BuildLibCalls.h llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp llvm/lib/Transforms/Utils/BuildLibCalls.cpp llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
index ffa8b26493..0438ccf36a 100644
--- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -1869,13 +1869,15 @@ Value *LibCallSimplifier::optimizeNew(CallInst *CI, IRBuilderBase &B,
case LibFunc_size_returning_new_aligned:
if (HotCold != NotColdNewHintValue)
return emitHotColdSizeReturningNewAligned(
- CI->getType()->getStructElementType(0), CI->getArgOperand(0), CI->getArgOperand(1), B, TLI,
+ CI->getType()->getStructElementType(0), CI->getArgOperand(0),
+ CI->getArgOperand(1), B, TLI,
LibFunc_size_returning_new_aligned_hot_cold, HotCold);
break;
case LibFunc_size_returning_new_aligned_hot_cold:
if (OptimizeExistingHotColdNew)
return emitHotColdSizeReturningNewAligned(
- CI->getType()->getStructElementType(0), CI->getArgOperand(0), CI->getArgOperand(1), B, TLI,
+ CI->getType()->getStructElementType(0), CI->getArgOperand(0),
+ CI->getArgOperand(1), B, TLI,
LibFunc_size_returning_new_aligned_hot_cold, HotCold);
break;
default:
``````````
</details>
https://github.com/llvm/llvm-project/pull/118729
More information about the llvm-commits
mailing list