[PATCH] D27938: [LICM] Report successful hoists/sinks
Davide Italiano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 6 18:31:57 PST 2017
davide added inline comments.
================
Comment at: include/llvm/Transforms/Utils/LoopUtils.h:407-412
/// DataLayout, TargetLibraryInfo, Loop, AliasSet information for all
/// instructions of the loop and loop safety information as arguments.
/// It returns changed status.
bool sinkRegion(DomTreeNode *, AliasAnalysis *, LoopInfo *, DominatorTree *,
TargetLibraryInfo *, Loop *, AliasSetTracker *,
+ LoopSafetyInfo *, OptimizationRemarkEmitter *ORE);
----------------
This comment needs to be updated to reflect the fact we now also take an `ORE`
================
Comment at: include/llvm/Transforms/Utils/LoopUtils.h:417-423
/// before uses, allowing us to hoist a loop body in one pass without iteration.
/// Takes DomTreeNode, AliasAnalysis, LoopInfo, DominatorTree, DataLayout,
/// TargetLibraryInfo, Loop, AliasSet information for all instructions of the
/// loop and loop safety information as arguments. It returns changed status.
bool hoistRegion(DomTreeNode *, AliasAnalysis *, LoopInfo *, DominatorTree *,
TargetLibraryInfo *, Loop *, AliasSetTracker *,
+ LoopSafetyInfo *, OptimizationRemarkEmitter *ORE);
----------------
Ditto.
================
Comment at: include/llvm/Transforms/Utils/LoopUtils.h:428-437
/// loop invariant. It takes AliasSet, Loop exit blocks vector, loop exit blocks
/// insertion point vector, PredIteratorCache, LoopInfo, DominatorTree, Loop,
/// AliasSet information for all instructions of the loop and loop safety
/// information as arguments. It returns changed status.
bool promoteLoopAccessesToScalars(AliasSet &, SmallVectorImpl<BasicBlock *> &,
SmallVectorImpl<Instruction *> &,
PredIteratorCache &, LoopInfo *,
----------------
Ditto.
https://reviews.llvm.org/D27938
More information about the llvm-commits
mailing list