Skip to content
  • Yuriy Sydorov's avatar
    * Before r35961 (back in 2017) some simple assignment optimizations, such as... · 07698050
    Yuriy Sydorov authored
    * Before r35961 (back in 2017) some simple assignment optimizations, such as "x:=x+y" to "inc(x,y)", were performed when -O2 in tassignmentnode.simplify. In r35961 these optimizations were moved to a separate pass which is enabled only when -O3 by cs_opt_use_load_modify_store. This separate pass can benefit from other optimization. But worse code is generated with -O2 since then.
    This commit restores applying of simple assignment optimizations when -O2.
    07698050