diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-07-01 06:54:47 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-07-01 06:54:47 +0000 |
commit | 2bd8b4b180dbaa20eda82e58085112bbe1bc191f (patch) | |
tree | 8b7dd1b0db7929a128e4a4a9bf1a284e32686333 /llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | |
parent | 36e601c6dcd8c30486897c626e017700817d1d73 (diff) | |
download | bcm5719-llvm-2bd8b4b180dbaa20eda82e58085112bbe1bc191f.tar.gz bcm5719-llvm-2bd8b4b180dbaa20eda82e58085112bbe1bc191f.zip |
[CodeGen,Target] Remove the version of DAG.getVectorShuffle that takes a pointer to a mask array. Convert all callers to use the ArrayRef version. No functional change intended.
For the most part this simplifies all callers. There were two places in X86 that needed an explicit makeArrayRef to shorten a statically sized array.
llvm-svn: 274337
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp index 78221826286..ebdab49f96b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp @@ -881,8 +881,7 @@ SDValue VectorLegalizer::ExpandBSWAP(SDValue Op) { SDLoc DL(Op); Op = DAG.getNode(ISD::BITCAST, DL, ByteVT, Op.getOperand(0)); - Op = DAG.getVectorShuffle(ByteVT, DL, Op, DAG.getUNDEF(ByteVT), - ShuffleMask.data()); + Op = DAG.getVectorShuffle(ByteVT, DL, Op, DAG.getUNDEF(ByteVT), ShuffleMask); return DAG.getNode(ISD::BITCAST, DL, VT, Op); } @@ -911,7 +910,7 @@ SDValue VectorLegalizer::ExpandBITREVERSE(SDValue Op) { SDLoc DL(Op); Op = DAG.getNode(ISD::BITCAST, DL, ByteVT, Op.getOperand(0)); Op = DAG.getVectorShuffle(ByteVT, DL, Op, DAG.getUNDEF(ByteVT), - BSWAPMask.data()); + BSWAPMask); Op = DAG.getNode(ISD::BITREVERSE, DL, ByteVT, Op); return DAG.getNode(ISD::BITCAST, DL, VT, Op); } |