diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2013-07-26 13:28:29 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2013-07-26 13:28:29 +0000 |
commit | d3f2035a3c1e2684a6c91de348b0d0df443608ac (patch) | |
tree | ffade57690e508ce721e96878d3cd06546b7386d /llvm/lib/CodeGen | |
parent | 1d812728cc0ddeb69b9f0d3d2d7d29fa4295086f (diff) | |
download | bcm5719-llvm-d3f2035a3c1e2684a6c91de348b0d0df443608ac.tar.gz bcm5719-llvm-d3f2035a3c1e2684a6c91de348b0d0df443608ac.zip |
Add a target legalize hook for SplitVectorOperand (again)
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
Attempt to fix the buildbots by making the X86 test I just added platform independent
llvm-svn: 187202
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: |