diff options
author | Dan Gohman <djg@cray.com> | 2007-10-12 14:13:46 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-10-12 14:13:46 +0000 |
commit | ae4c2f8b1a375dc9ecd8305061d35553b2d73536 (patch) | |
tree | 253deb055bca2402dee5e7555d41b097d7117c19 /lib | |
parent | 1d2dc2c74851ee7a69e4613af4d2747c3e8c310b (diff) | |
download | external_llvm-ae4c2f8b1a375dc9ecd8305061d35553b2d73536.zip external_llvm-ae4c2f8b1a375dc9ecd8305061d35553b2d73536.tar.gz external_llvm-ae4c2f8b1a375dc9ecd8305061d35553b2d73536.tar.bz2 |
Add support to SplitVectorOp for powi, where the second operand
is a scalar integer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 361c38d..3132d89 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -6335,6 +6335,12 @@ SDOperand SelectionDAGLegalize::ScalarizeVectorOp(SDOperand Op) { NewVT, ScalarizeVectorOp(Node->getOperand(0))); break; + case ISD::FPOWI: + Result = DAG.getNode(Node->getOpcode(), + NewVT, + ScalarizeVectorOp(Node->getOperand(0)), + Node->getOperand(1)); + break; case ISD::LOAD: { LoadSDNode *LD = cast<LoadSDNode>(Node); SDOperand Ch = LegalizeOp(LD->getChain()); // Legalize the chain. |