[llvm] bfdf28f - [docs][NewPM] Remove buildDefaultAAPipeline() in example

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 18 10:43:57 PST 2022


Author: Arthur Eubanks
Date: 2022-02-18T10:43:26-08:00
New Revision: bfdf28f9638c3904f9bcbb5747f2ec9b16f71535

URL: https://github.com/llvm/llvm-project/commit/bfdf28f9638c3904f9bcbb5747f2ec9b16f71535
DIFF: https://github.com/llvm/llvm-project/commit/bfdf28f9638c3904f9bcbb5747f2ec9b16f71535.diff

LOG: [docs][NewPM] Remove buildDefaultAAPipeline() in example

With D113210 we're already using the default AA pipeline by default.

Added: 
    

Modified: 
    llvm/docs/NewPassManager.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/NewPassManager.rst b/llvm/docs/NewPassManager.rst
index 9074603e4aa40..74ed077935a76 100644
--- a/llvm/docs/NewPassManager.rst
+++ b/llvm/docs/NewPassManager.rst
@@ -28,10 +28,6 @@ Just Tell Me How To Run The Default Optimization Pipeline With The New Pass Mana
   // options.
   PassBuilder PB;
 
-  // Make sure to use the default alias analysis pipeline, otherwise we'll end
-  // up only using a subset of the available analyses.
-  FAM.registerPass([&] { return PB.buildDefaultAAPipeline(); });
-
   // Register all the basic analyses with the managers.
   PB.registerModuleAnalyses(MAM);
   PB.registerCGSCCAnalyses(CGAM);


        


More information about the llvm-commits mailing list