[llvm] [llvm][SelectionDAG] Relax llvm.ptrmask's size check on arm64_32 (PR #94125)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 3 10:02:12 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 c5e417a812d86226b087346cadb05d3aae9fe1d0 1db465c3997b857c9df374acb22e2cebcaf6befb -- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 2851fe0035..94d81a9ea6 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -7846,8 +7846,10 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
// zero-extended to 64 bits when in registers. Thus the mask is 32 bits to
// match the index type, but the pointer is 64 bits, so the the mask must be
// zero-extended up to 64 bits to match the pointer.
- EVT PtrVT = TLI.getValueType(DAG.getDataLayout(), I.getOperand(0)->getType());
- EVT MemVT = TLI.getMemValueType(DAG.getDataLayout(), I.getOperand(0)->getType());
+ EVT PtrVT =
+ TLI.getValueType(DAG.getDataLayout(), I.getOperand(0)->getType());
+ EVT MemVT =
+ TLI.getMemValueType(DAG.getDataLayout(), I.getOperand(0)->getType());
assert(PtrVT == Ptr.getValueType());
assert(MemVT == Mask.getValueType());
if (MemVT != PtrVT)
``````````
</details>
https://github.com/llvm/llvm-project/pull/94125
More information about the llvm-commits
mailing list