[llvm] Reland "[NVPTX] Prefer prmt.b32 over bfi.b32" (PR #114326)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 16:55:25 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 847f4ef21b4a953bb6dd6477791e8d95b6db2509 c7134115251790f412f1fc3bb796d9afb69f696e --extensions cpp -- llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
index 4b4ad7c8e2..d32be9cd9b 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -2337,8 +2337,8 @@ SDValue NVPTXTargetLowering::LowerBUILD_VECTOR(SDValue Op,
         R = DAG.getAnyExtOrTrunc(R, DL, MVT::i32);
       }
       return DAG.getNode(
-          NVPTXISD::PRMT, DL, MVT::v4i8, {L, R,
-           DAG.getConstant(SelectionValue, DL, MVT::i32),
+          NVPTXISD::PRMT, DL, MVT::v4i8,
+          {L, R, DAG.getConstant(SelectionValue, DL, MVT::i32),
            DAG.getConstant(NVPTX::PTXPrmtMode::NONE, DL, MVT::i32)});
     };
     auto PRMT__10 = GetPRMT(Op->getOperand(0), Op->getOperand(1), true, 0x3340);

``````````

</details>


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


More information about the llvm-commits mailing list