[llvm] [NVPTX] Optimize v16i8 reductions (PR #67322)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 25 05:50:43 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 97687b7aea17cfc6e9c42d89b6f22ac5b9c7ddc1 e3702e76e0c9fb4d7b335ccd71b16f2ca86d9e15 -- 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 e425ffadf116..2ae16f0d992f 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -673,8 +673,8 @@ NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM,
// We have some custom DAG combine patterns for these nodes
setTargetDAGCombine({ISD::ADD, ISD::AND, ISD::FADD, ISD::MUL, ISD::SHL,
- ISD::SREM, ISD::UREM, ISD::EXTRACT_VECTOR_ELT,
- ISD::LOAD, ISD::ZERO_EXTEND});
+ ISD::SREM, ISD::UREM, ISD::EXTRACT_VECTOR_ELT, ISD::LOAD,
+ ISD::ZERO_EXTEND});
// setcc for f16x2 and bf16x2 needs special handling to prevent
// legalizer's attempt to scalarize it due to v2i1 not being legal.
``````````
</details>
https://github.com/llvm/llvm-project/pull/67322
More information about the llvm-commits
mailing list