Home
last modified time | relevance | path

Searched refs:CastSrcTy (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp496 Type *CastSrcTy = nullptr; in FoldPHIArgOpIntoPHI() local
500 CastSrcTy = FirstInst->getOperand(0)->getType(); in FoldPHIArgOpIntoPHI()
504 if (PN.getType()->isIntegerTy() && CastSrcTy->isIntegerTy()) { in FoldPHIArgOpIntoPHI()
505 if (!ShouldChangeType(PN.getType(), CastSrcTy)) in FoldPHIArgOpIntoPHI()
531 if (CastSrcTy) { in FoldPHIArgOpIntoPHI()
532 if (I->getOperand(0)->getType() != CastSrcTy) in FoldPHIArgOpIntoPHI()
DInstCombineVectorOps.cpp963 VectorType *CastSrcTy = VectorType::get(TgtTy, TgtNumElems); in visitShuffleVectorInst() local
979 bool BCAlreadyExists = NewBCs.find(CastSrcTy) != NewBCs.end(); in visitShuffleVectorInst()
982 ? NewBCs[CastSrcTy] in visitShuffleVectorInst()
983 : Builder->CreateBitCast(V, CastSrcTy, SVI.getName() + ".bc"); in visitShuffleVectorInst()
985 NewBCs[CastSrcTy] = NewBC; in visitShuffleVectorInst()