Home
last modified time | relevance | path

Searched refs:TruncInst (Results 1 – 25 of 95) sorted by relevance

1234

/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/AggressiveInstCombine/
Dtrunc_multi_uses.ll14 ;; These tests check cases where expression dag post-dominated by TruncInst
32 ; make sure zext have another use that is not post-dominated by the TruncInst.
51 ; make sure zext have another use that is not post-dominated by the TruncInst.
70 ; make sure zext have another use that is not post-dominated by the TruncInst.
89 ; make sure zext have another use that is not post-dominated by the TruncInst.
111 ; make sure zext have another use that is not post-dominated by the TruncInst.
131 ; make sure zext have another use that is not post-dominated by the TruncInst.
150 ; make sure zext have another use that is not post-dominated by the TruncInst.
169 ; make sure zext have another use that is not post-dominated by the TruncInst.
188 ; make sure zext have another use that is not post-dominated by the TruncInst.
[all …]
Dtrunc_const_expr.ll13 ;; These tests check cases where expression dag post-dominated by TruncInst
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombineInternal.h56 SmallVector<TruncInst *, 4> Worklist;
59 TruncInst *CurrentTruncInst;
DTruncInstCombine.cpp320 assert(!isa<TruncInst>(I) && "Cannot reach here with TruncInst"); in ReduceExpressionDag()
336 if (auto *NewCI = dyn_cast<TruncInst>(Res)) in ReduceExpressionDag()
340 } else if (auto *NewCI = dyn_cast<TruncInst>(Res)) in ReduceExpressionDag()
397 if (auto *CI = dyn_cast<TruncInst>(&I)) in run()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCasts.cpp429 Instruction *InstCombiner::visitTrunc(TruncInst &CI) { in visitTrunc()
660 if (0 && isa<TruncInst>(I) && I->getOperand(0)->getType() == Ty) in CanEvaluateZExtd()
749 if (CI.hasOneUse() && isa<TruncInst>(CI.use_back())) in visitZExt()
798 if (TruncInst *CSrc = dyn_cast<TruncInst>(Src)) { // A->B->C cast in visitZExt()
853 if (TruncInst *TI = dyn_cast<TruncInst>(SrcI->getOperand(0))) { in visitZExt()
867 if (TruncInst *TI = dyn_cast<TruncInst>(And->getOperand(0))) { in visitZExt()
1006 if (0 && isa<TruncInst>(I) && I->getOperand(0)->getType() == Ty) in CanEvaluateSExtd()
1055 if (CI.hasOneUse() && isa<TruncInst>(CI.use_back())) in visitSExt()
1097 if (TruncInst *TI = dyn_cast<TruncInst>(Src)) in visitSExt()
1386 return new TruncInst(P, CI.getType()); in visitPtrToInt()
[all …]
DInstCombineShifts.cpp359 if (TruncInst *TI = dyn_cast<TruncInst>(Op0)) { in FoldShiftByConstant()
398 return new TruncInst(And, I.getType()); in FoldShiftByConstant()
/external/llvm/lib/Target/AArch64/
DAArch64AddressTypePromotion.cpp166 if (isa<TruncInst>(Inst) && isa<SExtInst>(Inst->getOperand(0))) { in canGetThrough()
195 if (isa<TruncInst>(Inst)) in shouldGetThrough()
281 if (isa<SExtInst>(Inst) || isa<TruncInst>(Inst)) { in propagateSignExtension()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp439 static Instruction *foldVecTruncToExtElt(TruncInst &Trunc, InstCombiner &IC, in foldVecTruncToExtElt()
477 Instruction *InstCombiner::visitTrunc(TruncInst &CI) { in visitTrunc()
735 if (isa<TruncInst>(I) && I->getOperand(0)->getType() == Ty) in canEvaluateZExtd()
835 if (CI.hasOneUse() && isa<TruncInst>(CI.user_back())) in visitZExt()
886 if (TruncInst *CSrc = dyn_cast<TruncInst>(Src)) { // A->B->C cast in visitZExt()
1071 if (isa<TruncInst>(I) && I->getOperand(0)->getType() == Ty) in canEvaluateSExtd()
1120 if (CI.hasOneUse() && isa<TruncInst>(CI.user_back())) in visitSExt()
1171 if (TruncInst *TI = dyn_cast<TruncInst>(Src)) in visitSExt()
1455 return new TruncInst(SrcI, FITy); in FoldItoFPtoI()
1854 if (isa<TruncInst>(Src) || isa<ZExtInst>(Src)) { in visitBitCast()
DInstCombineShifts.cpp371 if (TruncInst *TI = dyn_cast<TruncInst>(Op0)) { in FoldShiftByConstant()
410 return new TruncInst(And, I.getType()); in FoldShiftByConstant()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMCodeGenPrepare.cpp165 else if (isa<TruncInst>(V)) in isSource()
232 if (isa<StoreInst>(I) || isa<TerminatorInst>(I) || isa<TruncInst>(I) || in shouldPromote()
519 else if (auto *Trunc = dyn_cast<TruncInst>(V)) in isSupportedValue()
646 if (isa<TruncInst>(V)) in TryToPromote()
/external/spirv-llvm/lib/SPIRV/
DSPIRVLowerBool.cpp77 virtual void visitTruncInst(TruncInst &I) { in visitTruncInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp457 static Instruction *foldVecTruncToExtElt(TruncInst &Trunc, InstCombiner &IC) { in foldVecTruncToExtElt()
496 Instruction *InstCombiner::narrowRotate(TruncInst &Trunc) { in narrowRotate()
565 Instruction *InstCombiner::narrowBinOp(TruncInst &Trunc) { in narrowBinOp()
623 static Instruction *shrinkSplatShuffle(TruncInst &Trunc, in shrinkSplatShuffle()
670 Instruction *InstCombiner::visitTrunc(TruncInst &CI) { in visitTrunc()
1054 if (CI.hasOneUse() && isa<TruncInst>(CI.user_back())) in visitZExt()
1107 if (TruncInst *CSrc = dyn_cast<TruncInst>(Src)) { // A->B->C cast in visitZExt()
1329 if (CI.hasOneUse() && isa<TruncInst>(CI.user_back())) in visitSExt()
1682 return new TruncInst(SrcI, FITy); in FoldItoFPtoI()
2297 if (isa<TruncInst>(Src) || isa<ZExtInst>(Src)) { in visitBitCast()
DInstCombineInternal.h373 Instruction *visitTrunc(TruncInst &CI);
527 Instruction *narrowBinOp(TruncInst &Trunc);
529 Instruction *narrowRotate(TruncInst &Trunc);
832 Instruction *foldICmpTruncConstant(ICmpInst &Cmp, TruncInst *Trunc,
DInstCombineShifts.cpp379 if (TruncInst *TI = dyn_cast<TruncInst>(Op0)) { in FoldShiftByConstant()
419 return new TruncInst(And, I.getType()); in FoldShiftByConstant()
/external/llvm/lib/Analysis/
DVectorUtils.cpp335 if ((isa<TruncInst>(&I) || isa<ICmpInst>(&I)) && in computeMinimumValueSizes()
340 if (TTI && isa<TruncInst>(&I) && TTI->isTypeLegal(I.getType())) in computeMinimumValueSizes()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp84 bool eliminateTrunc(TruncInst *TI);
498 bool SimplifyIndvar::eliminateTrunc(TruncInst *TI) { in eliminateTrunc()
634 if (auto *TI = dyn_cast<TruncInst>(UseInst)) in eliminateIVUser()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DInstVisitor.h178 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst); } in visitTruncInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DVectorUtils.cpp337 if ((isa<TruncInst>(&I) || isa<ICmpInst>(&I)) && in computeMinimumValueSizes()
342 if (TTI && isa<TruncInst>(&I) && TTI->isTypeLegal(I.getType())) in computeMinimumValueSizes()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/
DInterpreter.h138 void visitTruncInst(TruncInst &I);
/external/llvm/lib/Target/PowerPC/
DPPCBoolRetToInt.cpp238 Value *BackToBool = new TruncInst(IntRetVal, Int1Ty, "backToBool", I); in runOnUse()
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/
DInterpreter.h150 void visitTruncInst(TruncInst &I);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCBoolRetToInt.cpp266 Value *BackToBool = new TruncInst(IntRetVal, Int1Ty, "backToBool", I); in runOnUse()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DInstructions.cpp2253 case Trunc: return new TruncInst (S, Ty, Name, InsertBefore); in Create()
2276 case Trunc: return new TruncInst (S, Ty, Name, InsertAtEnd); in Create()
2664 TruncInst::TruncInst( in TruncInst() function in TruncInst
2670 TruncInst::TruncInst( in TruncInst() function in TruncInst
3376 TruncInst *TruncInst::clone_impl() const { in clone_impl()
3377 return new TruncInst(getOperand(0), getType()); in clone_impl()
/external/llvm/lib/ExecutionEngine/Interpreter/
DInterpreter.h157 void visitTruncInst(TruncInst &I);
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DAnalysis.cpp271 if (isa<TruncInst>(U) && in isInTailCallPosition()

1234