mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-01 06:34:20 +00:00
[X86] Replace call to isTruncStoreLegalOrCustom with isTruncStoreLegal. NFC
We have no custom trunc stores on X86. llvm-svn: 368606
This commit is contained in:
parent
dd8580f437
commit
3f4e9b156d
@ -39633,7 +39633,7 @@ static SDValue combineStore(SDNode *N, SelectionDAG &DAG,
|
||||
if (!St->isTruncatingStore() && VT == MVT::v16i8 && !Subtarget.hasBWI() &&
|
||||
St->getValue().getOpcode() == ISD::TRUNCATE &&
|
||||
St->getValue().getOperand(0).getValueType() == MVT::v16i16 &&
|
||||
TLI.isTruncStoreLegalOrCustom(MVT::v16i32, MVT::v16i8) &&
|
||||
TLI.isTruncStoreLegal(MVT::v16i32, MVT::v16i8) &&
|
||||
!DCI.isBeforeLegalizeOps()) {
|
||||
SDValue Ext = DAG.getNode(ISD::ANY_EXTEND, dl, MVT::v16i32, St->getValue());
|
||||
return DAG.getTruncStore(St->getChain(), dl, Ext, St->getBasePtr(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user