mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
During legalization, change Neon vdup_lane operations from shuffles to
target-specific VDUPLANE nodes. This allows the subreg handling for the quad-register version to be done easily with Pats in the .td file, instead of with custom code in ARMISelDAGToDAG.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78993 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -477,7 +477,7 @@ const char *ARMTargetLowering::getTargetNodeName(unsigned Opcode) const {
|
||||
case ARMISD::VQRSHRNsu: return "ARMISD::VQRSHRNsu";
|
||||
case ARMISD::VGETLANEu: return "ARMISD::VGETLANEu";
|
||||
case ARMISD::VGETLANEs: return "ARMISD::VGETLANEs";
|
||||
case ARMISD::VDUPLANEQ: return "ARMISD::VDUPLANEQ";
|
||||
case ARMISD::VDUPLANE: return "ARMISD::VDUPLANE";
|
||||
case ARMISD::VLD2D: return "ARMISD::VLD2D";
|
||||
case ARMISD::VLD3D: return "ARMISD::VLD3D";
|
||||
case ARMISD::VLD4D: return "ARMISD::VLD4D";
|
||||
@ -2447,6 +2447,12 @@ static SDValue LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) {
|
||||
// of inconsistencies between legalization and selection.
|
||||
// FIXME: floating-point vectors should be canonicalized to integer vectors
|
||||
// of the same time so that they get CSEd properly.
|
||||
if (SVN->isSplat()) {
|
||||
int Lane = SVN->getSplatIndex();
|
||||
if (Lane != 0)
|
||||
return DAG.getNode(ARMISD::VDUPLANE, dl, VT, SVN->getOperand(0),
|
||||
DAG.getConstant(Lane, MVT::i32));
|
||||
}
|
||||
if (isVREVMask(SVN, 64))
|
||||
return DAG.getNode(ARMISD::VREV64, dl, VT, SVN->getOperand(0));
|
||||
if (isVREVMask(SVN, 32))
|
||||
|
Reference in New Issue
Block a user