| /llvm-project-15.0.7/llvm/test/Transforms/AggressiveInstCombine/ |
| H A D | trunc_multi_uses.ll | 13 ;; 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 D | trunc_const_expr.ll | 13 ;; These tests check cases where expression dag post-dominated by TruncInst
|
| /llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombineInternal.h | 50 class TruncInst; variable 61 SmallVector<TruncInst *, 4> Worklist; 64 TruncInst *CurrentTruncInst = nullptr;
|
| H A D | TruncInstCombine.cpp | 402 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 D | TypePromotion.cpp | 231 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 D | VPRecipeBuilder.h | 84 tryToOptimizeInductionTruncate(TruncInst *I, ArrayRef<VPValue *> Operands,
|
| H A D | VPlan.h | 1061 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 D | InstCombineCasts.cpp | 500 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 D | InstCombineInternal.h | 129 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 D | Interpreter.h | 137 void visitTruncInst(TruncInst &I);
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCBoolRetToInt.cpp | 267 Value *BackToBool = new TruncInst(IntRetVal, Int1Ty, "backToBool", I); in runOnUse()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | MVELaneInterleavingPass.cpp | 384 (isa<TruncInst>(I) || isa<FPTruncInst>(I)) && !Visited.count(&I)) in runOnFunction()
|
| H A D | MVEGatherScatterLowering.cpp | 572 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 D | BPFAdjustOpt.cpp | 125 if (!isa<TruncInst>(Op0)) in adjustICmpToBuiltin()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopFlatten.cpp | 178 if (auto *V = dyn_cast<TruncInst>(U)) { in checkOuterInductionPhiUsers() 248 if (isa<TruncInst>(U)) { in checkInnerInductionPhiUsers()
|
| H A D | SeparateConstOffsetFromGEP.cpp | 621 } 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 D | InstVisitor.h | 176 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst);} in visitTruncInst()
|
| H A D | Instruction.def | 184 HANDLE_CAST_INST(38, Trunc , TruncInst ) // Truncate integers
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Instructions.cpp | 3190 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 D | IRBuilderTest.cpp | 226 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 D | SystemZTargetTransformInfo.cpp | 1032 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 D | TargetTransformInfoImpl.h | 1097 if (const TruncInst *TI = dyn_cast<TruncInst>(*LI->user_begin())) in getUserCost()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 86 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 D | VectorUtils.cpp | 640 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 D | IRInterpreter.cpp | 1163 const TruncInst *trunc_inst = cast<TruncInst>(inst); in Interpret()
|