Skip to content

Commit 5775c7c

Browse files
stefan-iligcbot
authored andcommitted
Avoid reporting IR modifications for analysis/dump passes
Some passes incorrectly reported IR as modified in their runOn functions.
1 parent 6ecd10b commit 5775c7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

IGC/Compiler/CISACodeGen/IGCFunctionExternalPressure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,5 @@ bool IGCFunctionExternalRegPressureAnalysis::runOnModule(llvm::Module &M) {
143143

144144
generateTableOfPressure(M);
145145

146-
return true;
146+
return false;
147147
}

IGC/Compiler/CISACodeGen/IGCLivenessAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ bool IGCLivenessAnalysis::runOnFunction(llvm::Function &F) {
321321
MDUtils = getAnalysis<MetaDataUtilsWrapper>().getMetaDataUtils();
322322
CGCtx = getAnalysis<CodeGenContextWrapper>().getCodeGenContext();
323323
livenessAnalysis(F, nullptr);
324-
return true;
324+
return false;
325325
}
326326

327327
char IGCRegisterPressurePrinter::ID = 0;
@@ -579,6 +579,6 @@ bool IGCRegisterPressurePrinter::runOnFunction(llvm::Function &F) {
579579
Output.clear();
580580
}
581581

582-
return true;
582+
return false;
583583
}
584584

0 commit comments

Comments
 (0)