mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Add some comments, and tidy up some whitespace.
llvm-svn: 70510
This commit is contained in:
parent
3c9f4f765c
commit
6d5f693ede
@ -449,7 +449,8 @@ namespace llvm {
|
||||
SCEVHandle getSCEVAtScope(Value *V, const Loop *L);
|
||||
|
||||
/// isLoopGuardedByCond - Test whether entry to the loop is protected by
|
||||
/// a conditional between LHS and RHS.
|
||||
/// a conditional between LHS and RHS. This is used to help avoid max
|
||||
/// expressions in loop trip counts.
|
||||
bool isLoopGuardedByCond(const Loop *L, ICmpInst::Predicate Pred,
|
||||
SCEV *LHS, SCEV *RHS);
|
||||
|
||||
|
@ -2986,8 +2986,9 @@ SCEVHandle ScalarEvolution::HowFarToNonZero(SCEV *V, const Loop *L) {
|
||||
///
|
||||
BasicBlock *
|
||||
ScalarEvolution::getPredecessorWithUniqueSuccessorForBB(BasicBlock *BB) {
|
||||
// If the block has a unique predecessor, the predecessor must have
|
||||
// no other successors from which BB is reachable.
|
||||
// If the block has a unique predecessor, then there is no path from the
|
||||
// predecessor to the block that does not go through the direct edge
|
||||
// from the predecessor to the block.
|
||||
if (BasicBlock *Pred = BB->getSinglePredecessor())
|
||||
return Pred;
|
||||
|
||||
@ -3002,7 +3003,8 @@ ScalarEvolution::getPredecessorWithUniqueSuccessorForBB(BasicBlock *BB) {
|
||||
}
|
||||
|
||||
/// isLoopGuardedByCond - Test whether entry to the loop is protected by
|
||||
/// a conditional between LHS and RHS.
|
||||
/// a conditional between LHS and RHS. This is used to help avoid max
|
||||
/// expressions in loop trip counts.
|
||||
bool ScalarEvolution::isLoopGuardedByCond(const Loop *L,
|
||||
ICmpInst::Predicate Pred,
|
||||
SCEV *LHS, SCEV *RHS) {
|
||||
|
Loading…
Reference in New Issue
Block a user