summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.td
diff options
context:
space:
mode:
authorTony Jiang <jtony@ca.ibm.com>2017-05-24 23:48:29 +0000
committerTony Jiang <jtony@ca.ibm.com>2017-05-24 23:48:29 +0000
commit0a429f040e338a1f126bb80e263918d8f8641ff2 (patch)
treea7cc88b272cab78e940e0483d643df23f57c2ee3 /llvm/lib/Target/PowerPC/PPCInstrInfo.td
parent8b78185e00e69e422cdffb047738bea94ec0221f (diff)
downloadbcm5719-llvm-0a429f040e338a1f126bb80e263918d8f8641ff2.tar.gz
bcm5719-llvm-0a429f040e338a1f126bb80e263918d8f8641ff2.zip
[PowerPC] Fix a performance bug for PPC::XXSLDWI.
There are some VectorShuffle Nodes in SDAG which can be selected to XXSLDWI instruction, this patch recognizes them and does the selection to improve the PPC performance. llvm-svn: 303822
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.td')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index 0766cfe4a98..26b99eced23 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -46,7 +46,7 @@ def SDT_PPCVecSplat : SDTypeProfile<1, 2, [ SDTCisVec<0>,
]>;
def SDT_PPCVecShift : SDTypeProfile<1, 3, [ SDTCisVec<0>,
- SDTCisVec<1>, SDTCisVec<2>, SDTCisInt<3>
+ SDTCisVec<1>, SDTCisVec<2>, SDTCisPtrTy<3>
]>;
def SDT_PPCVecInsert : SDTypeProfile<1, 3, [ SDTCisVec<0>,
OpenPOWER on IntegriCloud