Home
last modified time | relevance | path

Searched refs:IVOperand (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DSimplifyIndVar.cpp76 Value *foldIVUser(Instruction *UseInst, Instruction *IVOperand);
78 bool eliminateIVUser(Instruction *UseInst, Instruction *IVOperand);
79 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand);
80 void eliminateIVRemainder(BinaryOperator *Rem, Value *IVOperand,
93 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) { in foldIVUser() argument
104 if (IVOperand != UseInst->getOperand(OperIdx) || in foldIVUser()
110 if (IVOperand->getNumOperands() != 2 || in foldIVUser()
111 !isa<ConstantInt>(IVOperand->getOperand(1))) in foldIVUser()
114 IVSrc = IVOperand->getOperand(0); in foldIVUser()
138 DEBUG(dbgs() << "INDVARS: Eliminated IV operand: " << *IVOperand in foldIVUser()
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp69 Value *foldIVUser(Instruction *UseInst, Instruction *IVOperand);
71 bool eliminateIdentitySCEV(Instruction *UseInst, Instruction *IVOperand);
74 bool eliminateIVUser(Instruction *UseInst, Instruction *IVOperand);
75 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand);
76 void eliminateIVRemainder(BinaryOperator *Rem, Value *IVOperand,
78 bool strengthenOverflowingOperation(BinaryOperator *OBO, Value *IVOperand);
90 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) { in foldIVUser() argument
101 if (IVOperand != UseInst->getOperand(OperIdx) || in foldIVUser()
107 if (!isa<BinaryOperator>(IVOperand) in foldIVUser()
108 || !isa<ConstantInt>(IVOperand->getOperand(1))) in foldIVUser()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp1572 Value* IVOperand; member
1576 UserInst(U), IVOperand(O), IncExpr(E) {} in IVInc()
2501 const SCEV *HeadExpr = SE.getSCEV(getWideOperand(Incs[0].IVOperand)); in isProfitableIncrement()
2615 Value *PrevIV = getWideOperand(Chain.Incs.back().IVOperand); in ChainInstruction()
2802 Inc.IVOperand); in FinalizeChain()
2890 if (!canFoldIVIncExpr(LeftOverExpr, Inc.UserInst, Inc.IVOperand, TTI)) { in GenerateIVChain()
2896 Type *OperTy = Inc.IVOperand->getType(); in GenerateIVChain()
2903 Inc.UserInst->replaceUsesOfWith(Inc.IVOperand, IVOper); in GenerateIVChain()
2904 DeadInsts.emplace_back(Inc.IVOperand); in GenerateIVChain()