aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
diff options
context:
space:
mode:
authorYingwei Zheng <dtcxzyw2333@gmail.com>2024-09-01 22:35:52 +0800
committerGitHub <noreply@github.com>2024-09-01 22:35:52 +0800
commitaffc0c64b65e73e5e0afe790762376f633ea970c (patch)
tree02a311d19fd0474bd3e4de5e8195805403cf9a5a /llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
parent7b2fe84ff57b49f6275bc12d47f87a1887919d9e (diff)
downloadllvm-affc0c64b65e73e5e0afe790762376f633ea970c.zip
llvm-affc0c64b65e73e5e0afe790762376f633ea970c.tar.gz
llvm-affc0c64b65e73e5e0afe790762376f633ea970c.tar.bz2
[SDAG] Expand vector [u|s]cmp in VectorLegalizer (#106883)
Address comment https://github.com/llvm/llvm-project/pull/106747#issuecomment-2322922855.
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
index 87221c1..dc9a907 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
@@ -1155,6 +1155,10 @@ void VectorLegalizer::Expand(SDNode *Node, SmallVectorImpl<SDValue> &Results) {
case ISD::VECTOR_COMPRESS:
Results.push_back(TLI.expandVECTOR_COMPRESS(Node, DAG));
return;
+ case ISD::SCMP:
+ case ISD::UCMP:
+ Results.push_back(TLI.expandCMP(Node, DAG));
+ return;
}
SDValue Unrolled = DAG.UnrollVectorOp(Node);