Skip to content

Commit 62765df

Browse files
Mateusz Belickigfxbot
authored andcommitted
Fixed missing pass dependency in InstCombiner for LLVM7
Change-Id: Ieaef6f524a53e1de32a1911fd38eba4ab6e043e6
1 parent cf41110 commit 62765df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

IGC/Compiler/Optimizer/IGCInstCombiner/7.0/InstructionCombining.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3341,6 +3341,7 @@ namespace IGC {
33413341
AU.addRequired<TargetLibraryInfoWrapperPass>();
33423342
AU.addRequired<DominatorTreeWrapperPass>();
33433343
AU.addPreserved<DominatorTreeWrapperPass>();
3344+
AU.addPreserved<OptimizationRemarkEmitterWrapperPass>();
33443345
AU.addPreserved<AAResultsWrapperPass>();
33453346
AU.addPreserved<BasicAAWrapperPass>();
33463347
AU.addPreserved<GlobalsAAWrapperPass>();
@@ -3354,7 +3355,7 @@ namespace IGC {
33543355
auto &AC = getAnalysis<AssumptionCacheTracker>().getAssumptionCache(F);
33553356
auto &TLI = getAnalysis<TargetLibraryInfoWrapperPass>().getTLI();
33563357
auto &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
3357-
auto &ORE = getAnalysis<OptimizationRemarkEmitterWrapperPass>(F).getORE();
3358+
auto &ORE = getAnalysis<OptimizationRemarkEmitterWrapperPass>().getORE();
33583359

33593360
// Optional analyses.
33603361
auto *LIWP = getAnalysisIfAvailable<LoopInfoWrapperPass>();
@@ -3378,10 +3379,11 @@ INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass)
33783379
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
33793380
INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass)
33803381
INITIALIZE_PASS_DEPENDENCY(GlobalsAAWrapperPass)
3382+
INITIALIZE_PASS_DEPENDENCY(OptimizationRemarkEmitterWrapperPass)
33813383
IGC_INITIALIZE_PASS_END(IGCInstructionCombiningPass, PASS_FLAG, PASS_DESCRIPTION, PASS_CFG_ONLY, PASS_ANALYSIS)
33823384

33833385
FunctionPass* IGC::createIGCInstructionCombiningPass() {
33843386
return new IGCInstructionCombiningPass();
33853387
}
33863388

3387-
#include "common/LLVMWarningsPop.hpp"
3389+
#include "common/LLVMWarningsPop.hpp"

0 commit comments

Comments
 (0)