Skip to content

Commit bc18c0d

Browse files
eternastudentoigcbot
authored andcommitted
Remove PreservesCFG flag from InsertBranchOpt pass
InsertBranchOpt pass modifies CFG therefore it should not indicate preservation of it. Otherwise it could lead to a further crash (e.g. in code sinking).
1 parent e241c37 commit bc18c0d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

IGC/Compiler/CustomSafeOptPass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6437,7 +6437,6 @@ namespace {
64376437
bool HasSrcFromEE(Instruction* I, uint selNum, Instruction*& loadInst);
64386438
virtual void getAnalysisUsage(llvm::AnalysisUsage& AU) const override
64396439
{
6440-
AU.setPreservesCFG();
64416440
AU.addRequired<CodeGenContextWrapper>();
64426441
}
64436442
private:

0 commit comments

Comments
 (0)