mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
fix for ZAM optimization pruning of unnecessary instructions
This commit is contained in:
parent
6c696f7c55
commit
39c3a0ec0b
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@ bool ZAMCompiler::PruneUnused() {
|
||||||
if ( inst->IsLoad() && ! VarIsUsed(inst->v1) ) {
|
if ( inst->IsLoad() && ! VarIsUsed(inst->v1) ) {
|
||||||
did_prune = true;
|
did_prune = true;
|
||||||
KillInst(i);
|
KillInst(i);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( inst->IsNonLocalLoad() ) {
|
if ( inst->IsNonLocalLoad() ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue