[llvm] 4ae74cc - [GVNHoist] Preserve AAResults.

Alina Sbirlea via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 14:10:59 PST 2019


Author: Alina Sbirlea
Date: 2019-11-12T14:10:04-08:00
New Revision: 4ae74cc99fb9d9c1f47cc7c5cd4c515bd53e2a19

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

LOG: [GVNHoist] Preserve AAResults.

Resolves PR38906, PR40898.

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/GVNHoist.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/GVNHoist.cpp b/llvm/lib/Transforms/Scalar/GVNHoist.cpp
index c87e41484b13..a343fb75900a 100644
--- a/llvm/lib/Transforms/Scalar/GVNHoist.cpp
+++ b/llvm/lib/Transforms/Scalar/GVNHoist.cpp
@@ -1168,6 +1168,7 @@ class GVNHoistLegacyPass : public FunctionPass {
     AU.addPreserved<DominatorTreeWrapperPass>();
     AU.addPreserved<MemorySSAWrapperPass>();
     AU.addPreserved<GlobalsAAWrapperPass>();
+    AU.addPreserved<AAResultsWrapperPass>();
   }
 };
 


        


More information about the llvm-commits mailing list