Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h67 Register TruncSrc; in tryCombineAnyExt() local
70 if (MRI.getType(DstReg) == MRI.getType(TruncSrc)) in tryCombineAnyExt()
74 Builder.buildAnyExtOrTrunc(DstReg, TruncSrc); in tryCombineAnyExt()
122 Register TruncSrc; in tryCombineZExt() local
137 if (TruncSrc && (DstTy != MRI.getType(TruncSrc))) in tryCombineZExt()
138 TruncSrc = Builder.buildAnyExtOrTrunc(DstTy, TruncSrc).getReg(0); in tryCombineZExt()
183 Register TruncSrc; in tryCombineSExt() local
191 if (DstTy != MRI.getType(TruncSrc)) in tryCombineSExt()
192 TruncSrc = Builder.buildAnyExtOrTrunc(DstTy, TruncSrc).getReg(0); in tryCombineSExt()
315 Register TruncSrc; in tryCombineTrunc() local
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp1207 Instruction *TruncSrc; in visitLShr() local
1208 if (match(Op0, m_OneUse(m_Trunc(m_Instruction(TruncSrc)))) && in visitLShr()
1209 match(TruncSrc, m_LShr(m_Value(X), m_APInt(C1)))) { in visitLShr()
1219 (TruncSrc->hasOneUse() || C1->uge(SrcWidth - BitWidth))) { in visitLShr()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp790 Register TruncSrc; in matchSextTruncSextLoad() local
791 if (mi_match(SrcReg, MRI, m_GTrunc(m_Reg(TruncSrc)))) in matchSextTruncSextLoad()
792 LoadUser = TruncSrc; in matchSextTruncSextLoad()
800 if (TruncSrc && MRI.getType(TruncSrc).getSizeInBits() < LoadSizeBits) in matchSextTruncSextLoad()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIISelLowering.cpp10121 SDValue TruncSrc = Op.getOperand(0); in isCanonicalized() local
10122 if (TruncSrc.getValueType() == MVT::i32 && in isCanonicalized()
10123 TruncSrc.getOpcode() == ISD::BITCAST && in isCanonicalized()
10124 TruncSrc.getOperand(0).getValueType() == MVT::v2f16) { in isCanonicalized()
10125 return isCanonicalized(DAG, TruncSrc.getOperand(0), MaxDepth - 1); in isCanonicalized()