mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
[mips][msa] Added missing check in performSRACombine
Reviewers: jacksprat, dsanders Reviewed By: dsanders Differential Revision: http://llvm-reviews.chandlerc.com/D1755 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -609,6 +609,10 @@ static SDValue performSRACombine(SDNode *N, SelectionDAG &DAG,
|
||||
if (!ShAmount)
|
||||
return SDValue();
|
||||
|
||||
if (Op0Op0->getOpcode() != MipsISD::VEXTRACT_SEXT_ELT &&
|
||||
Op0Op0->getOpcode() != MipsISD::VEXTRACT_ZEXT_ELT)
|
||||
return SDValue();
|
||||
|
||||
EVT ExtendTy = cast<VTSDNode>(Op0Op0->getOperand(2))->getVT();
|
||||
unsigned TotalBits = ShAmount->getZExtValue() + ExtendTy.getSizeInBits();
|
||||
|
||||
|
Reference in New Issue
Block a user