Skip to content

Commit

Permalink
tcg: Remove USE_TCG_OPTIMIZATIONS
Browse files Browse the repository at this point in the history
This is always defined, and the optimization pass is
essential to producing reasonable code.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed May 23, 2023
1 parent d52b1d4 commit 30d5683
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tcg/tcg.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
* THE SOFTWARE.
*/

/* define it to use liveness analysis (better code) */
#define USE_TCG_OPTIMIZATIONS

#include "qemu/osdep.h"

/* Define to jump the ELF file used to communicate with GDB. */
Expand Down Expand Up @@ -6028,9 +6025,7 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb, uint64_t pc_start)
qatomic_set(&prof->opt_time, prof->opt_time - profile_getclock());
#endif

#ifdef USE_TCG_OPTIMIZATIONS
tcg_optimize(s);
#endif

#ifdef CONFIG_PROFILER
qatomic_set(&prof->opt_time, prof->opt_time + profile_getclock());
Expand Down

0 comments on commit 30d5683

Please sign in to comment.