diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2013-07-26 12:46:39 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2013-07-26 12:46:39 +0000 |
commit | f848a24e504c87a7a21e0cbf97030fe507ae9e45 (patch) | |
tree | 596fb40b50ac5086dd9edcb22f9b353b397b9592 /llvm/lib/CodeGen | |
parent | 81d648827f5ab02a3581c15573a6a8c8af4cf836 (diff) | |
download | bcm5719-llvm-f848a24e504c87a7a21e0cbf97030fe507ae9e45.tar.gz bcm5719-llvm-f848a24e504c87a7a21e0cbf97030fe507ae9e45.zip |
Add a target legalize hook for SplitVectorOperand
CustomLowerNode was not being called during SplitVectorOperand,
meaning custom legalization could not be used by targets.
This also adds a test case for NVPTX that depends on this custom
legalization.
Differential Revision: http://llvm-reviews.chandlerc.com/D1195
llvm-svn: 187198
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp index 75bb6094f56..72c16b5d39e 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp @@ -1031,6 +1031,10 @@ bool DAGTypeLegalizer::SplitVectorOperand(SDNode *N, unsigned OpNo) { dbgs() << "\n"); SDValue Res = SDValue(); + // See if the target wants to custom split this node. + if (CustomLowerNode(N, N->getOperand(OpNo).getValueType(), false)) + return false; + if (Res.getNode() == 0) { switch (N->getOpcode()) { default: |