mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
internal option to suppress control-flow optimization
This commit is contained in:
parent
63f76c7f84
commit
db22448270
3 changed files with 10 additions and 0 deletions
|
@ -144,6 +144,9 @@ bool ZAMCompiler::RemoveDeadCode() {
|
|||
if ( ! i0->live )
|
||||
continue;
|
||||
|
||||
if ( analysis_options.no_ZAM_control_flow_opt )
|
||||
continue;
|
||||
|
||||
auto i1 = NextLiveInst(i0);
|
||||
|
||||
// Look for degenerate branches.
|
||||
|
@ -181,6 +184,9 @@ bool ZAMCompiler::RemoveDeadCode() {
|
|||
}
|
||||
|
||||
bool ZAMCompiler::CollapseGoTos() {
|
||||
if ( analysis_options.no_ZAM_control_flow_opt )
|
||||
return false;
|
||||
|
||||
bool did_change = false;
|
||||
|
||||
for ( auto& i0 : insts1 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue