Skip to content

Commit

Permalink
Support multi-statment peephole optimizations. (#1137)
Browse files Browse the repository at this point in the history
* Support multi-statment peephole optimizations.
  • Loading branch information
ltfish authored Nov 28, 2023
1 parent 28e51a5 commit 0602568
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions angrmanagement/ui/widgets/qdecomp_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from angr.analyses.decompiler.decompilation_options import options as dec_options
from angr.analyses.decompiler.optimization_passes import get_default_optimization_passes, get_optimization_passes
from angr.analyses.decompiler.peephole_optimizations import EXPR_OPTS, STMT_OPTS
from angr.analyses.decompiler.peephole_optimizations import EXPR_OPTS, MULTI_STMT_OPTS, STMT_OPTS
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QComboBox, QLineEdit, QPushButton, QTreeWidget, QTreeWidgetItem, QVBoxLayout, QWidget

Expand Down Expand Up @@ -174,10 +174,10 @@ def get_all_passes(self):
]

def get_default_peephole_opts(self): # pylint: disable=no-self-use
return STMT_OPTS + EXPR_OPTS
return MULTI_STMT_OPTS + STMT_OPTS + EXPR_OPTS

def get_all_peephole_opts(self): # pylint: disable=no-self-use
return STMT_OPTS + EXPR_OPTS
return MULTI_STMT_OPTS + STMT_OPTS + EXPR_OPTS

def _init_widgets(self):
# search box
Expand Down

0 comments on commit 0602568

Please sign in to comment.