[llvm] [Scalar] Use LLVMContext::MD_mem_parallel_loop_access directly (NFC) (PR #69549)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 18 18:20:47 PDT 2023


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 ab301d833a207c717adff9612a4e58fe963e6ff0 f0372d03e5d9c9968c3272e6cb1438412ba8c72a -- llvm/lib/Transforms/Scalar/Scalarizer.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Scalar/Scalarizer.cpp b/llvm/lib/Transforms/Scalar/Scalarizer.cpp
index f5e480ae3..b2461607a 100644
--- a/llvm/lib/Transforms/Scalar/Scalarizer.cpp
+++ b/llvm/lib/Transforms/Scalar/Scalarizer.cpp
@@ -545,14 +545,13 @@ void ScalarizerVisitor::replaceUses(Instruction *Op, Value *CV) {
 // Return true if it is safe to transfer the given metadata tag from
 // vector to scalar instructions.
 bool ScalarizerVisitor::canTransferMetadata(unsigned Tag) {
-  return (Tag == LLVMContext::MD_tbaa
-          || Tag == LLVMContext::MD_fpmath
-          || Tag == LLVMContext::MD_tbaa_struct
-          || Tag == LLVMContext::MD_invariant_load
-          || Tag == LLVMContext::MD_alias_scope
-          || Tag == LLVMContext::MD_noalias
-          || Tag == LLVMContext::MD_mem_parallel_loop_access
-          || Tag == LLVMContext::MD_access_group);
+  return (Tag == LLVMContext::MD_tbaa || Tag == LLVMContext::MD_fpmath ||
+          Tag == LLVMContext::MD_tbaa_struct ||
+          Tag == LLVMContext::MD_invariant_load ||
+          Tag == LLVMContext::MD_alias_scope ||
+          Tag == LLVMContext::MD_noalias ||
+          Tag == LLVMContext::MD_mem_parallel_loop_access ||
+          Tag == LLVMContext::MD_access_group);
 }
 
 // Transfer metadata from Op to the instructions in CV if it is known

``````````

</details>


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


More information about the llvm-commits mailing list