14#ifndef LLVM_TRANSFORMS_UTILS_LOOPPEEL_H
15#define LLVM_TRANSFORMS_UTILS_LOOPPEEL_H
26bool peelLoop(Loop *L,
unsigned PeelCount, LoopInfo *LI, ScalarEvolution *SE,
27 DominatorTree &DT, AssumptionCache *AC,
bool PreserveLCSSA,
30TargetTransformInfo::PeelingPreferences
32 const TargetTransformInfo &
TTI,
33 std::optional<bool> UserAllowPeeling,
34 std::optional<bool> UserAllowProfileBasedPeeling,
35 bool UnrollingSpecficValues =
false);
38 TargetTransformInfo::PeelingPreferences &PP,
39 unsigned TripCount, DominatorTree &DT,
40 ScalarEvolution &SE, AssumptionCache *AC =
nullptr,
41 unsigned Threshold = UINT_MAX);
This is an optimization pass for GlobalISel generic memory operations.
void computePeelCount(Loop *L, unsigned LoopSize, TargetTransformInfo::PeelingPreferences &PP, unsigned TripCount, DominatorTree &DT, ScalarEvolution &SE, AssumptionCache *AC=nullptr, unsigned Threshold=UINT_MAX)
bool canPeel(const Loop *L)
TargetTransformInfo::PeelingPreferences gatherPeelingPreferences(Loop *L, ScalarEvolution &SE, const TargetTransformInfo &TTI, std::optional< bool > UserAllowPeeling, std::optional< bool > UserAllowProfileBasedPeeling, bool UnrollingSpecficValues=false)
ValueMap< const Value *, WeakTrackingVH > ValueToValueMapTy
bool peelLoop(Loop *L, unsigned PeelCount, LoopInfo *LI, ScalarEvolution *SE, DominatorTree &DT, AssumptionCache *AC, bool PreserveLCSSA, ValueToValueMapTy &VMap)
VMap is the value-map that maps instructions from the original loop to instructions in the last peele...