Lines Matching defs:StraightLineStrengthReduce
1 //===- StraightLineStrengthReduce.cpp - -----------------------------------===//
58 #include "llvm/Transforms/Scalar/StraightLineStrengthReduce.h"
129 class StraightLineStrengthReduce {
131 StraightLineStrengthReduce(const DataLayout *DL, DominatorTree *DT,
272 bool StraightLineStrengthReduce::isBasisFor(const Candidate &Basis,
301 bool StraightLineStrengthReduce::isFoldable(const Candidate &C,
322 bool StraightLineStrengthReduce::isSimplestForm(const Candidate &C) {
346 void StraightLineStrengthReduce::allocateCandidatesAndFindBasis(
382 void StraightLineStrengthReduce::allocateCandidatesAndFindBasis(
397 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForAdd(
410 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForAdd(
440 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForMul(
462 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForMul(
478 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForGEP(
491 void StraightLineStrengthReduce::factorArrayIndex(Value *ArrayIdx,
526 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForGEP(
579 Value *StraightLineStrengthReduce::emitBump(const Candidate &Basis,
615 void StraightLineStrengthReduce::rewriteCandidateWithBasis(
685 return StraightLineStrengthReduce(DL, DT, SE, TTI).runOnFunction(F);
688 bool StraightLineStrengthReduce::runOnFunction(Function &F) {
728 if (!StraightLineStrengthReduce(DL, DT, SE, TTI).runOnFunction(F))