Home
last modified time | relevance | path

Searched refs:TruncSrc (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h71 Register TruncSrc; in tryCombineAnyExt() local
72 if (mi_match(SrcReg, MRI, m_GTrunc(m_Reg(TruncSrc)))) { in tryCombineAnyExt()
74 if (MRI.getType(DstReg) == MRI.getType(TruncSrc)) in tryCombineAnyExt()
75 replaceRegOrBuildCopy(DstReg, TruncSrc, MRI, Builder, UpdatedDefs, in tryCombineAnyExt()
78 Builder.buildAnyExtOrTrunc(DstReg, TruncSrc); in tryCombineAnyExt()
131 Register TruncSrc; in tryCombineZExt() local
133 if (mi_match(SrcReg, MRI, m_GTrunc(m_Reg(TruncSrc))) || in tryCombineZExt()
144 if (TruncSrc && (DstTy != MRI.getType(TruncSrc))) in tryCombineZExt()
145 TruncSrc = Builder.buildAnyExtOrTrunc(DstTy, TruncSrc).getReg(0); in tryCombineZExt()
147 Register AndSrc = SextSrc ? SextSrc : TruncSrc; in tryCombineZExt()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp1468 Instruction *TruncSrc; in visitLShr() local
1469 if (match(Op0, m_OneUse(m_Trunc(m_Instruction(TruncSrc)))) && in visitLShr()
1470 match(TruncSrc, m_LShr(m_Value(X), m_APInt(C1)))) { in visitLShr()
1480 (TruncSrc->hasOneUse() || C1->uge(SrcWidth - BitWidth))) { in visitLShr()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIISelLowering.cpp12755 SDValue TruncSrc = Op.getOperand(0); in isCanonicalized() local
12756 if (TruncSrc.getValueType() == MVT::i32 && in isCanonicalized()
12757 TruncSrc.getOpcode() == ISD::BITCAST && in isCanonicalized()
12758 TruncSrc.getOperand(0).getValueType() == MVT::v2f16) { in isCanonicalized()
12759 return isCanonicalized(DAG, TruncSrc.getOperand(0), MaxDepth - 1); in isCanonicalized()
13543 SDValue TruncSrc = N->getOperand(0); in performFPRoundCombine() local
13548 if (TruncSrc.getOpcode() != AMDGPUISD::FMED3 || in performFPRoundCombine()
13549 TruncSrc.getValueType() != MVT::f32 || !TruncSrc.hasOneUse()) in performFPRoundCombine()
13561 SDValue A = strictFPExtFromF16(DAG, TruncSrc.getOperand(0)); in performFPRoundCombine()
13565 SDValue B = strictFPExtFromF16(DAG, TruncSrc.getOperand(1)); in performFPRoundCombine()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp1004 Register TruncSrc; in matchSextTruncSextLoad() local
1005 if (mi_match(SrcReg, MRI, m_GTrunc(m_Reg(TruncSrc)))) in matchSextTruncSextLoad()
1006 LoadUser = TruncSrc; in matchSextTruncSextLoad()
1014 if (TruncSrc && in matchSextTruncSextLoad()
1015 MRI.getType(TruncSrc).getSizeInBits() < LoadSizeBits.getValue()) in matchSextTruncSextLoad()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp45344 SDValue TruncSrc = InputVector.getOperand(0); in combineExtractVectorElt() local
45345 EVT TruncSVT = TruncSrc.getValueType().getScalarType(); in combineExtractVectorElt()
45348 DAG.getNode(ISD::EXTRACT_VECTOR_ELT, dl, TruncSVT, TruncSrc, EltIdx); in combineExtractVectorElt()