[PATCH v3] i386:#define macros to constexpr macros
Ata Borla
chessy.gnu.org@gmail.com
Sun Oct 11 20:41:21 GMT 2026
---
gcc/config/i386/x86-tune-sched-bd.cc | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/gcc/config/i386/x86-tune-sched-bd.cc b/gcc/config/i386/x86-tune-sched-bd.cc
index ade6f45a55c..78cd96f1838 100644
--- a/gcc/config/i386/x86-tune-sched-bd.cc
+++ b/gcc/config/i386/x86-tune-sched-bd.cc
@@ -35,33 +35,28 @@ along with GCC; see the file COPYING3. If not see
#include "regset.h"
#include "sched-int.h"
-/* The size of the dispatch window is the total number of bytes of
- object code allowed in a window. */
-#define DISPATCH_WINDOW_SIZE 16
-/* Number of dispatch windows considered for scheduling. */
-#define MAX_DISPATCH_WINDOWS 3
/* Maximum number of instructions in a window. */
-#define MAX_INSN 4
+constexpr int MAX_INSN =4;
/* Maximum number of immediate operands in a window. */
-#define MAX_IMM 4
+constexpr int MAX_IMM =4;
/* Maximum number of immediate bits allowed in a window. */
-#define MAX_IMM_SIZE 128
+constexpr int MAX_IMM_SIZE= 128;
/* Maximum number of 32 bit immediates allowed in a window. */
-#define MAX_IMM_32 4
+constexpr int MAX_IMM_32 =4;
/* Maximum number of 64 bit immediates allowed in a window. */
-#define MAX_IMM_64 2
+constexpr int MAX_IMM_64= 2;
/* Maximum total of loads or prefetches allowed in a window. */
-#define MAX_LOAD 2
+constexpr int MAX_LOAD =2;
/* Maximum total of stores allowed in a window. */
-#define MAX_STORE 1
+constexpr int MAX_STORE = 1;
#undef BIG
#define BIG 100
--
2.56.0
More information about the Gcc-patches
mailing list