]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tcg: Remove USE_TCG_OPTIMIZATIONS
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Apr 2023 23:08:38 +0000 (16:08 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 24 May 2023 01:54:55 +0000 (18:54 -0700)
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>
tcg/tcg.c

index bfe3d80fc2f0a1d00387cbd44736a344ede42c4e..ac30d484f5595ff657ee2bb8272c2cfdf8e97509 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -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.  */
@@ -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());