File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1045,6 +1045,8 @@ TrivialLocalMemoryOpsElimination::TrivialLocalMemoryOpsElimination() : FunctionP
1045
1045
bool TrivialLocalMemoryOpsElimination::runOnFunction (Function& F)
1046
1046
{
1047
1047
bool change = false ;
1048
+
1049
+
1048
1050
visit (F);
1049
1051
if (!abortPass && (m_LocalLoadsToRemove.empty () ^ m_LocalStoresToRemove.empty ()))
1050
1052
{
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
25
======================= end_copyright_notice ==================================*/
26
26
#pragma once
27
27
#include " Compiler/CodeGenContextWrapper.hpp"
28
+ #include " common/MDFrameWork.h"
28
29
29
30
#include " common/LLVMWarningsPush.hpp"
30
31
#include < llvm/Pass.h>
@@ -111,6 +112,12 @@ namespace IGC
111
112
112
113
~TrivialLocalMemoryOpsElimination () {}
113
114
115
+ virtual void getAnalysisUsage (llvm::AnalysisUsage& AU) const override
116
+ {
117
+ AU.addRequired <CodeGenContextWrapper>();
118
+ AU.setPreservesCFG ();
119
+ }
120
+
114
121
virtual bool runOnFunction (llvm::Function& F) override ;
115
122
116
123
virtual llvm::StringRef getPassName () const override
You can’t perform that action at this time.
0 commit comments