Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp293 if (CastInst *CSrc = dyn_cast<CastInst>(Src)) { // A->B->C cast in commonCastTransforms() local
295 isEliminableCastPair(CSrc, CI.getOpcode(), CI.getType(), DL)) { in commonCastTransforms()
298 return CastInst::Create(opc, CSrc->getOperand(0), CI.getType()); in commonCastTransforms()
886 if (TruncInst *CSrc = dyn_cast<TruncInst>(Src)) { // A->B->C cast in visitZExt() local
891 Value *A = CSrc->getOperand(0); in visitZExt()
893 unsigned MidSize = CSrc->getType()->getScalarSizeInBits(); in visitZExt()
902 Value *And = Builder->CreateAnd(A, AndConst, CSrc->getName()+".mask"); in visitZExt()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp282 if (auto *CSrc = dyn_cast<CastInst>(Src)) { // A->B->C cast in commonCastTransforms() local
283 if (Instruction::CastOps NewOpc = isEliminableCastPair(CSrc, &CI)) { in commonCastTransforms()
287 auto *Res = CastInst::Create(NewOpc, CSrc->getOperand(0), Ty); in commonCastTransforms()
289 if (CSrc->hasOneUse()) in commonCastTransforms()
290 replaceAllDbgUsesWith(*CSrc, *Res, CI, DT); in commonCastTransforms()
1227 if (TruncInst *CSrc = dyn_cast<TruncInst>(Src)) { // A->B->C cast in visitZExt() local
1232 Value *A = CSrc->getOperand(0); in visitZExt()
1234 unsigned MidSize = CSrc->getType()->getScalarSizeInBits(); in visitZExt()
1243 Value *And = Builder.CreateAnd(A, AndConst, CSrc->getName() + ".mask"); in visitZExt()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp265 if (auto *CSrc = dyn_cast<CastInst>(Src)) { // A->B->C cast in commonCastTransforms() local
266 if (Instruction::CastOps NewOpc = isEliminableCastPair(CSrc, &CI)) { in commonCastTransforms()
270 auto *Res = CastInst::Create(NewOpc, CSrc->getOperand(0), Ty); in commonCastTransforms()
272 if (CSrc->hasOneUse()) in commonCastTransforms()
273 replaceAllDbgUsesWith(*CSrc, *Res, CI, DT); in commonCastTransforms()
1142 if (TruncInst *CSrc = dyn_cast<TruncInst>(Src)) { // A->B->C cast in visitZExt() local
1147 Value *A = CSrc->getOperand(0); in visitZExt()
1149 unsigned MidSize = CSrc->getType()->getScalarSizeInBits(); in visitZExt()
1158 Value *And = Builder.CreateAnd(A, AndConst, CSrc->getName() + ".mask"); in visitZExt()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp9960 ConstantFPSDNode *CSrc = dyn_cast<ConstantFPSDNode>(N->getOperand(0)); in performClampCombine() local
9961 if (!CSrc) in performClampCombine()
9965 const APFloat &F = CSrc->getValueAPF(); in performClampCombine()
9979 return SDValue(CSrc, 0); in performClampCombine()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp10724 ConstantFPSDNode *CSrc = dyn_cast<ConstantFPSDNode>(N->getOperand(0)); in performClampCombine() local
10725 if (!CSrc) in performClampCombine()
10729 const APFloat &F = CSrc->getValueAPF(); in performClampCombine()
10740 return SDValue(CSrc, 0); in performClampCombine()