Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/test/Transforms/AggressiveInstCombine/
H A Dtrunc_multi_uses.ll13 ;; These tests check cases where expression dag post-dominated by TruncInst
31 ; make sure zext have another use that is not post-dominated by the TruncInst.
50 ; make sure zext have another use that is not post-dominated by the TruncInst.
69 ; make sure zext have another use that is not post-dominated by the TruncInst.
88 ; make sure zext have another use that is not post-dominated by the TruncInst.
110 ; make sure zext have another use that is not post-dominated by the TruncInst.
130 ; make sure zext have another use that is not post-dominated by the TruncInst.
149 ; make sure zext have another use that is not post-dominated by the TruncInst.
216 ;; These tests check cases where expression dag post-dominated by TruncInst
217 ;; contains TruncInst leaf or ZEXT/SEXT leafs which turn into TruncInst leaves.
[all …]
H A Dtrunc_const_expr.ll13 ;; These tests check cases where expression dag post-dominated by TruncInst
/llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombineInternal.h50 class TruncInst; variable
61 SmallVector<TruncInst *, 4> Worklist;
64 TruncInst *CurrentTruncInst = nullptr;
H A DTruncInstCombine.cpp402 assert(!isa<TruncInst>(I) && "Cannot reach here with TruncInst"); in ReduceExpressionGraph()
418 if (auto *NewCI = dyn_cast<TruncInst>(Res)) in ReduceExpressionGraph()
422 } else if (auto *NewCI = dyn_cast<TruncInst>(Res)) in ReduceExpressionGraph()
534 if (auto *CI = dyn_cast<TruncInst>(&I)) in run()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DTypePromotion.cpp231 else if (auto *Trunc = dyn_cast<TruncInst>(V)) in isSource()
591 if (NewInsts.count(Src) && isa<TruncInst>(Src)) { in Cleanup()
592 auto *Trunc = cast<TruncInst>(Src); in Cleanup()
611 if (!isa<TruncInst>(V) || Sources.count(V)) in ConvertTruncs()
614 auto *Trunc = cast<TruncInst>(V); in ConvertTruncs()
650 if (!isa<TruncInst>(V) || Sources.count(V)) in Mutate()
652 auto *Trunc = cast<TruncInst>(V); in Mutate()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPRecipeBuilder.h84 tryToOptimizeInductionTruncate(TruncInst *I, ArrayRef<VPValue *> Operands,
H A DVPlan.h1061 TruncInst *Trunc, bool NeedsVectorIV) in VPWidenIntOrFpInductionRecipe()
1093 TruncInst *getTruncInst() { in getTruncInst()
1094 return dyn_cast_or_null<TruncInst>(getVPValue(0)->getUnderlyingValue()); in getTruncInst()
1096 const TruncInst *getTruncInst() const { in getTruncInst()
1097 return dyn_cast_or_null<TruncInst>(getVPValue(0)->getUnderlyingValue()); in getTruncInst()
1111 const TruncInst *TruncI = getTruncInst(); in getScalarType()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp500 static Instruction *foldVecTruncToExtElt(TruncInst &Trunc, in foldVecTruncToExtElt()
540 Instruction *InstCombinerImpl::narrowFunnelShift(TruncInst &Trunc) { in narrowFunnelShift()
641 Instruction *InstCombinerImpl::narrowBinOp(TruncInst &Trunc) { in narrowBinOp()
725 static Instruction *shrinkSplatShuffle(TruncInst &Trunc, in shrinkSplatShuffle()
772 Instruction *InstCombinerImpl::visitTrunc(TruncInst &Trunc) { in visitTrunc()
813 return new TruncInst(Res, DestTy); in visitTrunc()
1241 if (CI.hasOneUse() && isa<TruncInst>(CI.user_back())) in visitZExt()
1291 if (TruncInst *CSrc = dyn_cast<TruncInst>(Src)) { // A->B->C cast in visitZExt()
1502 if (CI.hasOneUse() && isa<TruncInst>(CI.user_back())) in visitSExt()
2006 return new TruncInst(X, DestType); in foldItoFPtoI()
[all …]
H A DInstCombineInternal.h129 Instruction *visitTrunc(TruncInst &CI);
324 Instruction *narrowBinOp(TruncInst &Trunc);
327 Instruction *narrowFunnelShift(TruncInst &Trunc);
691 Instruction *foldICmpTruncConstant(ICmpInst &Cmp, TruncInst *Trunc,
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h137 void visitTruncInst(TruncInst &I);
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCBoolRetToInt.cpp267 Value *BackToBool = new TruncInst(IntRetVal, Int1Ty, "backToBool", I); in runOnUse()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DMVELaneInterleavingPass.cpp384 (isa<TruncInst>(I) || isa<FPTruncInst>(I)) && !Visited.count(&I)) in runOnFunction()
H A DMVEGatherScatterLowering.cpp572 Load = TruncInst::Create(Instruction::Trunc, Load, MemoryTy); in tryCreateMaskedGatherOffset()
674 if (TruncInst *Trunc = dyn_cast<TruncInst>(Input)) { in tryCreateMaskedScatterOffset()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp125 if (!isa<TruncInst>(Op0)) in adjustICmpToBuiltin()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopFlatten.cpp178 if (auto *V = dyn_cast<TruncInst>(U)) { in checkOuterInductionPhiUsers()
248 if (isa<TruncInst>(U)) { in checkInnerInductionPhiUsers()
H A DSeparateConstOffsetFromGEP.cpp621 } else if (isa<TruncInst>(V)) { in find()
690 (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) && in distributeExtsAndCloneChain()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstVisitor.h176 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst);} in visitTruncInst()
H A DInstruction.def184 HANDLE_CAST_INST(38, Trunc , TruncInst ) // Truncate integers
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstructions.cpp3190 case Trunc: return new TruncInst (S, Ty, Name, InsertBefore); in Create()
3212 case Trunc: return new TruncInst (S, Ty, Name, InsertAtEnd); in Create()
3669 TruncInst::TruncInst( in TruncInst() function in TruncInst
3675 TruncInst::TruncInst( in TruncInst() function in TruncInst
4704 TruncInst *TruncInst::cloneImpl() const { in cloneImpl()
4705 return new TruncInst(getOperand(0), getType()); in cloneImpl()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DIRBuilderTest.cpp226 EXPECT_TRUE(isa<TruncInst>(StepVec)); in TEST_F()
227 TruncInst *Trunc = cast<TruncInst>(StepVec); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp1032 if (isa<TruncInst>(UserI)) in isFoldableLoad()
1135 (isa<TruncInst>(OtherOp) || isa<SExtInst>(OtherOp) || in getMemoryOpCost()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h1097 if (const TruncInst *TI = dyn_cast<TruncInst>(*LI->user_begin())) in getUserCost()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp86 bool eliminateTrunc(TruncInst *TI);
488 bool SimplifyIndvar::eliminateTrunc(TruncInst *TI) { in eliminateTrunc()
629 if (auto *TI = dyn_cast<TruncInst>(UseInst)) in eliminateIVUser()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DVectorUtils.cpp640 if ((isa<TruncInst>(&I) || isa<ICmpInst>(&I)) && in computeMinimumValueSizes()
645 if (TTI && isa<TruncInst>(&I) && TTI->isTypeLegal(I.getType())) in computeMinimumValueSizes()
/llvm-project-15.0.7/lldb/source/Expression/
H A DIRInterpreter.cpp1163 const TruncInst *trunc_inst = cast<TruncInst>(inst); in Interpret()

12