@@ -378,7 +378,7 @@ static BasicBlock *insertUniqueBackedgeBlock(Loop *L, BasicBlock *Preheader,
378378 if (P != Preheader) BackedgeBlocks.push_back (P);
379379 }
380380
381- // Create and insert the new backedge block...
381+ // Create and insert the new backedge block.
382382 BasicBlock *BEBlock = BasicBlock::Create (Header->getContext (),
383383 Header->getName () + " .backedge" , F);
384384 BranchInst *BETerminator = BranchInst::Create (Header, BEBlock);
@@ -737,39 +737,39 @@ bool llvm::simplifyLoop(Loop *L, DominatorTree *DT, LoopInfo *LI,
737737}
738738
739739namespace {
740- struct LoopSimplify : public FunctionPass {
741- static char ID; // Pass identification, replacement for typeid
742- LoopSimplify () : FunctionPass(ID) {
743- initializeLoopSimplifyPass (*PassRegistry::getPassRegistry ());
744- }
740+ struct LoopSimplify : public FunctionPass {
741+ static char ID; // Pass identification, replacement for typeid
742+ LoopSimplify () : FunctionPass(ID) {
743+ initializeLoopSimplifyPass (*PassRegistry::getPassRegistry ());
744+ }
745745
746- bool runOnFunction (Function &F) override ;
746+ bool runOnFunction (Function &F) override ;
747747
748- void getAnalysisUsage (AnalysisUsage &AU) const override {
749- AU.addRequired <AssumptionCacheTracker>();
748+ void getAnalysisUsage (AnalysisUsage &AU) const override {
749+ AU.addRequired <AssumptionCacheTracker>();
750750
751- // We need loop information to identify the loops.. .
752- AU.addRequired <DominatorTreeWrapperPass>();
753- AU.addPreserved <DominatorTreeWrapperPass>();
751+ // We need loop information to identify the loops.
752+ AU.addRequired <DominatorTreeWrapperPass>();
753+ AU.addPreserved <DominatorTreeWrapperPass>();
754754
755- AU.addRequired <LoopInfoWrapperPass>();
756- AU.addPreserved <LoopInfoWrapperPass>();
755+ AU.addRequired <LoopInfoWrapperPass>();
756+ AU.addPreserved <LoopInfoWrapperPass>();
757757
758- AU.addPreserved <BasicAAWrapperPass>();
759- AU.addPreserved <AAResultsWrapperPass>();
760- AU.addPreserved <GlobalsAAWrapperPass>();
761- AU.addPreserved <ScalarEvolutionWrapperPass>();
762- AU.addPreserved <SCEVAAWrapperPass>();
763- AU.addPreservedID (LCSSAID);
764- AU.addPreservedID (BreakCriticalEdgesID); // No critical edges added.
765- AU.addPreserved <BranchProbabilityInfoWrapperPass>();
766- AU.addPreserved <MemorySSAWrapperPass>();
767- }
758+ AU.addPreserved <BasicAAWrapperPass>();
759+ AU.addPreserved <AAResultsWrapperPass>();
760+ AU.addPreserved <GlobalsAAWrapperPass>();
761+ AU.addPreserved <ScalarEvolutionWrapperPass>();
762+ AU.addPreserved <SCEVAAWrapperPass>();
763+ AU.addPreservedID (LCSSAID);
764+ AU.addPreservedID (BreakCriticalEdgesID); // No critical edges added.
765+ AU.addPreserved <BranchProbabilityInfoWrapperPass>();
766+ AU.addPreserved <MemorySSAWrapperPass>();
767+ }
768768
769- // / verifyAnalysis() - Verify LoopSimplifyForm's guarantees.
770- void verifyAnalysis () const override ;
771- };
772- }
769+ // / verifyAnalysis() - Verify LoopSimplifyForm's guarantees.
770+ void verifyAnalysis () const override ;
771+ };
772+ } // namespace
773773
774774char LoopSimplify::ID = 0 ;
775775INITIALIZE_PASS_BEGIN (LoopSimplify, " loop-simplify" ,
@@ -780,12 +780,12 @@ INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass)
780780INITIALIZE_PASS_END(LoopSimplify, " loop-simplify" , " Canonicalize natural loops" ,
781781 false , false )
782782
783- // Publicly exposed interface to pass...
783+ // Publicly exposed interface to pass.
784784char &llvm::LoopSimplifyID = LoopSimplify::ID;
785785Pass *llvm::createLoopSimplifyPass () { return new LoopSimplify (); }
786786
787787// / runOnFunction - Run down all loops in the CFG (recursively, but we could do
788- // / it in any convenient order) inserting preheaders...
788+ // / it in any convenient order) inserting preheaders.
789789// /
790790bool LoopSimplify::runOnFunction (Function &F) {
791791 bool Changed = false ;
0 commit comments