[llvm] [Statepoint] Optimize Location structure size (PR #78600)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 07:32:50 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 656bf13004d62b8f8360d8d496bb1e6e08407c22 40473de753055f0c648cbee7b7b6b5c1de3dd3ca -- llvm/include/llvm/CodeGen/StackMaps.h llvm/lib/CodeGen/StackMaps.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/StackMaps.cpp b/llvm/lib/CodeGen/StackMaps.cpp
index 32453091fb..f45bcaf16a 100644
--- a/llvm/lib/CodeGen/StackMaps.cpp
+++ b/llvm/lib/CodeGen/StackMaps.cpp
@@ -248,8 +248,7 @@ StackMaps::parseOperand(MachineInstr::const_mop_iterator MOI,
         // (uint64_t)0 and (uint64_t)-1.  They can be and are
         // represented using 32 bit integers.
         assert((uint64_t)Imm != DenseMapInfo<uint64_t>::getEmptyKey() &&
-               (uint64_t)Imm !=
-                   DenseMapInfo<uint64_t>::getTombstoneKey() &&
+               (uint64_t)Imm != DenseMapInfo<uint64_t>::getTombstoneKey() &&
                "empty and tombstone keys should fit in 32 bits!");
         auto Result = ConstPool.insert(std::make_pair(Imm, Imm));
         Locs.emplace_back(Location::ConstantIndex, sizeof(int64_t), 0,

``````````

</details>


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


More information about the llvm-commits mailing list