mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-16 06:49:58 +00:00
Add a comment to describe why vector shuffles are legalized to custom DAG nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78884 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ac55b85438
commit
28865062c1
@ -2439,6 +2439,10 @@ static SDValue LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) {
|
|||||||
DebugLoc dl = Op.getDebugLoc();
|
DebugLoc dl = Op.getDebugLoc();
|
||||||
EVT VT = Op.getValueType();
|
EVT VT = Op.getValueType();
|
||||||
|
|
||||||
|
// Convert shuffles that are directly supported on NEON to target-specific
|
||||||
|
// DAG nodes, instead of keeping them as shuffles and matching them again
|
||||||
|
// during code selection. This is more efficient and avoids the possibility
|
||||||
|
// of inconsistencies between legalization and selection.
|
||||||
if (SVN->isSplat() && SVN->getSplatIndex() == 0)
|
if (SVN->isSplat() && SVN->getSplatIndex() == 0)
|
||||||
return DAG.getNode(ARMISD::VSPLAT0, dl, VT, SVN->getOperand(0));
|
return DAG.getNode(ARMISD::VSPLAT0, dl, VT, SVN->getOperand(0));
|
||||||
if (isVREVMask(SVN, 64))
|
if (isVREVMask(SVN, 64))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user