public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/PR102688-fix-frename-registers-handling-v2)] Fix handling of flag_rename_registers by a target.
@ 2021-10-13 12:01 Martin Liska
0 siblings, 0 replies; 3+ messages in thread
From: Martin Liska @ 2021-10-13 12:01 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d302e88e15892f11d9c7ede2612966d31bacb6ea
commit d302e88e15892f11d9c7ede2612966d31bacb6ea
Author: Martin Liska <mliska@suse.cz>
Date: Tue Oct 12 16:05:49 2021 +0200
Fix handling of flag_rename_registers by a target.
PR target/102688
gcc/ChangeLog:
* common.opt: Use EnabledBy instead of detection in
finish_options and process_options.
* opts.c (finish_options): Remove handling of
x_flag_unroll_all_loops.
* toplev.c (process_options): Likewise for flag_web and
flag_rename_registers.
Diff:
---
gcc/common.opt | 6 +++---
gcc/opts.c | 5 -----
gcc/toplev.c | 7 -------
3 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/gcc/common.opt b/gcc/common.opt
index 4099effcc80..1eedfeaf539 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -2399,7 +2399,7 @@ Common Var(flag_live_range_shrinkage) Init(0) Optimization
Relief of register pressure through live range shrinkage.
frename-registers
-Common Var(flag_rename_registers) Optimization
+Common Var(flag_rename_registers) Optimization EnabledBy(funroll-loops)
Perform a register renaming optimization pass.
fschedule-fusion
@@ -2935,7 +2935,7 @@ Common Var(flag_unit_at_a_time) Init(1)
Compile whole compilation unit at a time.
funroll-loops
-Common Var(flag_unroll_loops) Optimization
+Common Var(flag_unroll_loops) Optimization EnabledBy(funroll-all-loops)
Perform loop unrolling when iteration count is known.
funroll-all-loops
@@ -3158,7 +3158,7 @@ Common Var(flag_value_profile_transformations) Optimization
Use expression value profiles in optimizations.
fweb
-Common Var(flag_web) Optimization
+Common Var(flag_web) Optimization EnabledBy(funroll-loops)
Construct webs and split unrelated uses of single variable.
ftree-builtin-call-dce
diff --git a/gcc/opts.c b/gcc/opts.c
index 2116c2991dd..fc71b6e4242 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1321,11 +1321,6 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
opts->x_flag_live_patching,
loc);
- /* Unrolling all loops implies that standard loop unrolling must also
- be done. */
- if (opts->x_flag_unroll_all_loops)
- opts->x_flag_unroll_loops = 1;
-
/* Allow cunroll to grow size accordingly. */
if (!opts_set->x_flag_cunroll_grow_size)
opts->x_flag_cunroll_grow_size
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 167feac2583..81546b19e91 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1331,13 +1331,6 @@ process_options (bool no_backend)
flag_abi_version = 2;
}
- /* web and rename-registers help when run after loop unrolling. */
- if (!OPTION_SET_P (flag_web))
- flag_web = flag_unroll_loops;
-
- if (!OPTION_SET_P (flag_rename_registers))
- flag_rename_registers = flag_unroll_loops;
-
if (flag_non_call_exceptions)
flag_asynchronous_unwind_tables = 1;
if (flag_asynchronous_unwind_tables)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gcc(refs/users/marxin/heads/PR102688-fix-frename-registers-handling-v2)] Fix handling of flag_rename_registers by a target.
@ 2021-10-13 10:00 Martin Liska
0 siblings, 0 replies; 3+ messages in thread
From: Martin Liska @ 2021-10-13 10:00 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:8e35923c1d38e9a03027cd419626ce94d09ee51f
commit 8e35923c1d38e9a03027cd419626ce94d09ee51f
Author: Martin Liska <mliska@suse.cz>
Date: Tue Oct 12 16:05:49 2021 +0200
Fix handling of flag_rename_registers by a target.
gcc/ChangeLog:
* common.opt: Use EnabledBy instead of detection in
finish_options and process_options.
* opts.c (finish_options): Remove handling of
x_flag_unroll_all_loops.
* toplev.c (process_options): Likewise for flag_web and
flag_rename_registers.
Diff:
---
gcc/common.opt | 6 +++---
gcc/opts.c | 5 -----
gcc/toplev.c | 7 -------
3 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/gcc/common.opt b/gcc/common.opt
index 4099effcc80..1eedfeaf539 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -2399,7 +2399,7 @@ Common Var(flag_live_range_shrinkage) Init(0) Optimization
Relief of register pressure through live range shrinkage.
frename-registers
-Common Var(flag_rename_registers) Optimization
+Common Var(flag_rename_registers) Optimization EnabledBy(funroll-loops)
Perform a register renaming optimization pass.
fschedule-fusion
@@ -2935,7 +2935,7 @@ Common Var(flag_unit_at_a_time) Init(1)
Compile whole compilation unit at a time.
funroll-loops
-Common Var(flag_unroll_loops) Optimization
+Common Var(flag_unroll_loops) Optimization EnabledBy(funroll-all-loops)
Perform loop unrolling when iteration count is known.
funroll-all-loops
@@ -3158,7 +3158,7 @@ Common Var(flag_value_profile_transformations) Optimization
Use expression value profiles in optimizations.
fweb
-Common Var(flag_web) Optimization
+Common Var(flag_web) Optimization EnabledBy(funroll-loops)
Construct webs and split unrelated uses of single variable.
ftree-builtin-call-dce
diff --git a/gcc/opts.c b/gcc/opts.c
index 2116c2991dd..fc71b6e4242 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1321,11 +1321,6 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
opts->x_flag_live_patching,
loc);
- /* Unrolling all loops implies that standard loop unrolling must also
- be done. */
- if (opts->x_flag_unroll_all_loops)
- opts->x_flag_unroll_loops = 1;
-
/* Allow cunroll to grow size accordingly. */
if (!opts_set->x_flag_cunroll_grow_size)
opts->x_flag_cunroll_grow_size
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 167feac2583..81546b19e91 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1331,13 +1331,6 @@ process_options (bool no_backend)
flag_abi_version = 2;
}
- /* web and rename-registers help when run after loop unrolling. */
- if (!OPTION_SET_P (flag_web))
- flag_web = flag_unroll_loops;
-
- if (!OPTION_SET_P (flag_rename_registers))
- flag_rename_registers = flag_unroll_loops;
-
if (flag_non_call_exceptions)
flag_asynchronous_unwind_tables = 1;
if (flag_asynchronous_unwind_tables)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gcc(refs/users/marxin/heads/PR102688-fix-frename-registers-handling-v2)] Fix handling of flag_rename_registers by a target.
@ 2021-10-12 15:10 Martin Liska
0 siblings, 0 replies; 3+ messages in thread
From: Martin Liska @ 2021-10-12 15:10 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:c42efec30d7cce36c92d9369791826c9120dd3d1
commit c42efec30d7cce36c92d9369791826c9120dd3d1
Author: Martin Liska <mliska@suse.cz>
Date: Tue Oct 12 16:05:49 2021 +0200
Fix handling of flag_rename_registers by a target.
gcc/ChangeLog:
* common.opt: Use EnabledBy instead of detection in
finish_options and process_options.
* opts.c (finish_options): Remove handling of
x_flag_unroll_all_loops.
* toplev.c (process_options): Likewise for flag_web and
flag_rename_registers.
Diff:
---
gcc/common.opt | 6 +++---
gcc/opts.c | 5 -----
gcc/toplev.c | 7 -------
3 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/gcc/common.opt b/gcc/common.opt
index 4099effcc80..bcbf95aada3 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -2399,7 +2399,7 @@ Common Var(flag_live_range_shrinkage) Init(0) Optimization
Relief of register pressure through live range shrinkage.
frename-registers
-Common Var(flag_rename_registers) Optimization
+Common Var(flag_rename_registers) Optimization EnabledBy(funroll-loops)
Perform a register renaming optimization pass.
fschedule-fusion
@@ -2939,7 +2939,7 @@ Common Var(flag_unroll_loops) Optimization
Perform loop unrolling when iteration count is known.
funroll-all-loops
-Common Var(flag_unroll_all_loops) Optimization
+Common Var(flag_unroll_all_loops) Optimization EnabledBy(funroll-all-loops)
Perform loop unrolling for all loops.
funroll-completely-grow-size
@@ -3158,7 +3158,7 @@ Common Var(flag_value_profile_transformations) Optimization
Use expression value profiles in optimizations.
fweb
-Common Var(flag_web) Optimization
+Common Var(flag_web) Optimization EnabledBy(funroll-loops)
Construct webs and split unrelated uses of single variable.
ftree-builtin-call-dce
diff --git a/gcc/opts.c b/gcc/opts.c
index 2116c2991dd..fc71b6e4242 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1321,11 +1321,6 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
opts->x_flag_live_patching,
loc);
- /* Unrolling all loops implies that standard loop unrolling must also
- be done. */
- if (opts->x_flag_unroll_all_loops)
- opts->x_flag_unroll_loops = 1;
-
/* Allow cunroll to grow size accordingly. */
if (!opts_set->x_flag_cunroll_grow_size)
opts->x_flag_cunroll_grow_size
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 167feac2583..81546b19e91 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1331,13 +1331,6 @@ process_options (bool no_backend)
flag_abi_version = 2;
}
- /* web and rename-registers help when run after loop unrolling. */
- if (!OPTION_SET_P (flag_web))
- flag_web = flag_unroll_loops;
-
- if (!OPTION_SET_P (flag_rename_registers))
- flag_rename_registers = flag_unroll_loops;
-
if (flag_non_call_exceptions)
flag_asynchronous_unwind_tables = 1;
if (flag_asynchronous_unwind_tables)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-10-13 12:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 12:01 [gcc(refs/users/marxin/heads/PR102688-fix-frename-registers-handling-v2)] Fix handling of flag_rename_registers by a target Martin Liska
-- strict thread matches above, loose matches on Subject: below --
2021-10-13 10:00 Martin Liska
2021-10-12 15:10 Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).