[llvm] [PowerPC] Alignment of toc-data symbol should not be increased during optimizations (PR #94593)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 07:21:45 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 bf02f81da743e60a5c51fc8f5ff43d57cf6db407 315e42bc7cfea8380a362dbb19b992d9ebd08fcd -- llvm/lib/IR/Globals.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/IR/Globals.cpp b/llvm/lib/IR/Globals.cpp
index 1d4116a9c4..700b065836 100644
--- a/llvm/lib/IR/Globals.cpp
+++ b/llvm/lib/IR/Globals.cpp
@@ -339,7 +339,7 @@ bool GlobalObject::canIncreaseAlignment() const {
       (!Parent || Triple(Parent->getTargetTriple()).isOSBinFormatXCOFF());
   if (isXCOFF)
     if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this))
-      // GV with toc-data attribute is defined in a TOC entry which 
+      // GV with toc-data attribute is defined in a TOC entry which
       // has a fixed alignment and cannot be arbitrarily increased.
       // Its alignment should be the same as toc entry.
       return !GV->hasAttribute("toc-data");

``````````

</details>


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


More information about the llvm-commits mailing list