[llvm] r293694 - [NewGVN] Preserve TargetLibraryInfo analysis.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 31 13:53:19 PST 2017
Author: davide
Date: Tue Jan 31 15:53:18 2017
New Revision: 293694
URL: http://llvm.org/viewvc/llvm-project?rev=293694&view=rev
Log:
[NewGVN] Preserve TargetLibraryInfo analysis.
We can maybe preserve more but this is a first step.
Ack'ed by Danny on IRC.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=293694&r1=293693&r2=293694&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Tue Jan 31 15:53:18 2017
@@ -595,6 +595,7 @@ PreservedAnalyses GVN::run(Function &F,
PreservedAnalyses PA;
PA.preserve<DominatorTreeAnalysis>();
PA.preserve<GlobalsAA>();
+ PA.preserve<TargetLibraryAnalysis>();
return PA;
}
@@ -2784,6 +2785,7 @@ public:
AU.addPreserved<DominatorTreeWrapperPass>();
AU.addPreserved<GlobalsAAWrapperPass>();
+ AU.addPreserved<TargetLibraryInfoWrapperPass>();
AU.addRequired<OptimizationRemarkEmitterWrapperPass>();
}
More information about the llvm-commits
mailing list