Lines Matching defs:StraightLineStrengthReduce
1 //===- StraightLineStrengthReduce.cpp - -----------------------------------===//
58 #include "llvm/Transforms/Scalar/StraightLineStrengthReduce.h"
125 class StraightLineStrengthReduce {
127 StraightLineStrengthReduce(const DataLayout *DL, DominatorTree *DT,
268 bool StraightLineStrengthReduce::isBasisFor(const Candidate &Basis,
297 bool StraightLineStrengthReduce::isFoldable(const Candidate &C,
318 bool StraightLineStrengthReduce::isSimplestForm(const Candidate &C) {
342 void StraightLineStrengthReduce::allocateCandidatesAndFindBasis(
378 void StraightLineStrengthReduce::allocateCandidatesAndFindBasis(
393 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForAdd(
406 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForAdd(
436 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForMul(
458 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForMul(
474 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForGEP(
487 void StraightLineStrengthReduce::factorArrayIndex(Value *ArrayIdx,
522 void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForGEP(
575 Value *StraightLineStrengthReduce::emitBump(const Candidate &Basis,
611 void StraightLineStrengthReduce::rewriteCandidateWithBasis(
678 return StraightLineStrengthReduce(DL, DT, SE, TTI).runOnFunction(F);
681 bool StraightLineStrengthReduce::runOnFunction(Function &F) {
721 if (!StraightLineStrengthReduce(DL, DT, SE, TTI).runOnFunction(F))