Home
last modified time | relevance | path

Searched refs:IVOperand (Results 1 – 5 of 5) 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp78 Value *foldIVUser(Instruction *UseInst, Instruction *IVOperand);
80 bool eliminateIdentitySCEV(Instruction *UseInst, Instruction *IVOperand);
85 bool eliminateIVUser(Instruction *UseInst, Instruction *IVOperand);
86 bool makeIVComparisonInvariant(ICmpInst *ICmp, Value *IVOperand);
87 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand);
88 void simplifyIVRemainder(BinaryOperator *Rem, Value *IVOperand,
94 bool strengthenOverflowingOperation(BinaryOperator *OBO, Value *IVOperand);
95 bool strengthenRightShift(BinaryOperator *BO, Value *IVOperand);
107 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) { in foldIVUser() argument
118 if (IVOperand != UseInst->getOperand(OperIdx) || 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp1829 Value* IVOperand; member
1833 : UserInst(U), IVOperand(O), IncExpr(E) {} in IVInc()
2781 const SCEV *HeadExpr = SE.getSCEV(getWideOperand(Incs[0].IVOperand)); in isProfitableIncrement()
2894 Value *PrevIV = getWideOperand(Chain.Incs.back().IVOperand); in ChainInstruction()
3079 auto UseI = find(Inc.UserInst->operands(), Inc.IVOperand); in FinalizeChain()
3167 if (!canFoldIVIncExpr(LeftOverExpr, Inc.UserInst, Inc.IVOperand, TTI)) { in GenerateIVChain()
3173 Type *OperTy = Inc.IVOperand->getType(); in GenerateIVChain()
3180 Inc.UserInst->replaceUsesOfWith(Inc.IVOperand, IVOper); in GenerateIVChain()
3181 DeadInsts.emplace_back(Inc.IVOperand); in GenerateIVChain()