From 3f4e9b156d37fe91599bb5d6ec24709d8fc78ec2 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 12 Aug 2019 19:26:22 +0000 Subject: [PATCH] [X86] Replace call to isTruncStoreLegalOrCustom with isTruncStoreLegal. NFC We have no custom trunc stores on X86. llvm-svn: 368606 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 54d2ac3..bacb7ab 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -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(), -- 2.7.4