[llvm] [LLVM][CodeGen] Teach SelectionDAG how to expand FREM to a vector math call. (PR #83859)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 7 05:02:34 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 3d454d2895820cd1e6caa92f1e82ba468b5b5f09 ae0751103ee441c9e441e56984fb0d9b7c94e531 -- llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp llvm/lib/CodeGen/TargetPassConfig.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
index 567ec7df0d..57a3f6a65e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
@@ -1884,7 +1884,7 @@ bool VectorLegalizer::tryExpandVecMathCall(SDNode *Node, RTLIB::Libcall LC,
const TargetLibraryInfo &TLibInfo = DAG.getLibInfo();
const VecDesc *VD = TLibInfo.getVectorMappingInfo(LCName, VL, false);
if (!VD)
- VD = TLibInfo.getVectorMappingInfo(LCName, VL, /*Masked=*/ true);
+ VD = TLibInfo.getVectorMappingInfo(LCName, VL, /*Masked=*/true);
if (!VD)
return false;
``````````
</details>
https://github.com/llvm/llvm-project/pull/83859
More information about the llvm-commits
mailing list