diff options
author | Craig Topper <craig.topper@intel.com> | 2019-08-20 16:55:12 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-08-20 16:55:12 +0000 |
commit | 22ac9f396fcadcea546eaff38954932c1818e4f1 (patch) | |
tree | a46983615ea2abaf75d8b8eac46b823a4577c91c | |
parent | cb93f650b6e5e1cfc65bd5e53e9bf0e5470ad346 (diff) | |
download | bcm5719-llvm-22ac9f396fcadcea546eaff38954932c1818e4f1.tar.gz bcm5719-llvm-22ac9f396fcadcea546eaff38954932c1818e4f1.zip |
[X86] Use isNullConstant instead of getConstantOperandVal == 0. NFC
llvm-svn: 369410
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 9be4350ef98..88a3b27aa98 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -44293,10 +44293,10 @@ static SDValue combineInsertSubvector(SDNode *N, SelectionDAG &DAG, // least as large as the original insertion. Just insert the original // subvector into a zero vector. if (SubVec.getOpcode() == ISD::EXTRACT_SUBVECTOR && IdxVal == 0 && - SubVec.getConstantOperandAPInt(1) == 0 && + isNullConstant(SubVec.getOperand(1)) && SubVec.getOperand(0).getOpcode() == ISD::INSERT_SUBVECTOR) { SDValue Ins = SubVec.getOperand(0); - if (Ins.getConstantOperandAPInt(2) == 0 && + if (isNullConstant(Ins.getOperand(2)) && ISD::isBuildVectorAllZeros(Ins.getOperand(0).getNode()) && Ins.getOperand(1).getValueSizeInBits() <= SubVecVT.getSizeInBits()) return DAG.getNode(ISD::INSERT_SUBVECTOR, dl, OpVT, |