Lines Matching refs:StraightLineStrengthReduce
1 //===- StraightLineStrengthReduce.cpp - -----------------------------------===//
98 class StraightLineStrengthReduce : public FunctionPass {
149 StraightLineStrengthReduce() : FunctionPass(ID) {
246 char StraightLineStrengthReduce::ID = 0;
248 INITIALIZE_PASS_BEGIN(StraightLineStrengthReduce, "slsr",
253 INITIALIZE_PASS_END(StraightLineStrengthReduce, "slsr",
257 return new StraightLineStrengthReduce();
260 bool StraightLineStrengthReduce::isBasisFor(const Candidate &Basis,
291 bool StraightLineStrengthReduce::isFoldable(const Candidate &C,
312 bool StraightLineStrengthReduce::isSimplestForm(const Candidate &C) {
336 void StraightLineStrengthReduce::allocateCandidatesAndFindBasis(
372 void StraightLineStrengthReduce::allocateCandidatesAndFindBasis(
387 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForAdd(
400 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForAdd(
432 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForMul(
454 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForMul(
470 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForGEP(
483 void StraightLineStrengthReduce::factorArrayIndex(Value *ArrayIdx,
518 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForGEP(
571 Value *StraightLineStrengthReduce::emitBump(const Candidate &Basis,
622 void StraightLineStrengthReduce::rewriteCandidateWithBasis(
707 bool StraightLineStrengthReduce::runOnFunction(Function &F) {