Skip to content

Commit 15d008f

Browse files
committed
[BOLT] InsertNegateRAStatePass: change CFG error conditions
- allow running on finalized CFG - don't throw error if one functions doesn't have CFG, only skip that one
1 parent e0c0957 commit 15d008f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

bolt/lib/Passes/InsertNegateRAStatePass.cpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@ void InsertNegateRAState::runOnFunction(BinaryFunction &BF) {
2020

2121
if (BF.getState() != BinaryFunction::State::CFG &&
2222
BF.getState() != BinaryFunction::State::CFG_Finalized) {
23-
BC.errs() << "BOLT-WARNING: No CFG for " << BF.getPrintName()
24-
<< " in InsertNegateRAStatePass\n";
25-
return;
26-
}
27-
28-
if (BF.getState() == BinaryFunction::State::CFG_Finalized) {
29-
BC.errs() << "BOLT-WARNING: CFG finalized for " << BF.getPrintName()
23+
BC.outs() << "BOLT-INFO: No CFG for " << BF.getPrintName()
3024
<< " in InsertNegateRAStatePass\n";
3125
return;
3226
}

0 commit comments

Comments
 (0)