Create members for Loop, ScalarEvolution, DominatorTree, TargetTransformInfo and Formula.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/Scalar/LoopStrengthReduce.cpp | ||
---|---|---|
1018 ↗ | (On Diff #187381) | 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 ↗ | (On Diff #187742) | If Cost objects are always created with all these initialized please explicitly "= delete" the default c'tor. |