Create members for Loop, ScalarEvolution, DominatorTree, TargetTransformInfo and Formula.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Transforms/Scalar/LoopStrengthReduce.cpp | ||
---|---|---|
1018 | TTI et al. persist throughout Cost's life so it makes sense to initialize the object with them and keep them as members. IINM F is limited to rateFormula() - seems more natural to keep F as its argument (and risky to keep it beyond rateFormula()'s scope). |
lib/Transforms/Scalar/LoopStrengthReduce.cpp | ||
---|---|---|
1020 | If Cost objects are always created with all these initialized please explicitly "= delete" the default c'tor. |
TTI et al. persist throughout Cost's life so it makes sense to initialize the object with them and keep them as members. IINM F is limited to rateFormula() - seems more natural to keep F as its argument (and risky to keep it beyond rateFormula()'s scope).