public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] strub: drop obsolete pp conditionals
@ 2023-10-20  3:48 Alexandre Oliva
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Oliva @ 2023-10-20  3:48 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d7036fc7f68e04fee52e821d832011f06901a2e6

commit d7036fc7f68e04fee52e821d832011f06901a2e6
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Thu Oct 19 02:53:12 2023 -0300

    strub: drop obsolete pp conditionals

Diff:
---
 gcc/ipa-strub.cc | 22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)

diff --git a/gcc/ipa-strub.cc b/gcc/ipa-strub.cc
index 861cd0cffa0e..876828ad4317 100644
--- a/gcc/ipa-strub.cc
+++ b/gcc/ipa-strub.cc
@@ -1898,20 +1898,12 @@ build_ref_type_for (tree parm, bool nonaliased = true)
      set seems to not run afoul of this problem, and it hopefully enables the
      compiler to tell the pointers do point to objects that are not otherwise
      aliased.  */
-#if 1
   tree qref_type = build_variant_type_copy (ref_type);
 
   TYPE_ALIAS_SET (qref_type) = new_alias_set ();
   record_alias_subset (TYPE_ALIAS_SET (qref_type), get_alias_set (ref_type));
 
   return qref_type;
-#else
-  tree qref_type = build_qualified_type (ref_type,
-					 TYPE_QUAL_RESTRICT
-					 | TYPE_QUAL_CONST);
-
-  return qref_type;
-#endif
 }
 
 /* Add cgraph edges from current_function_decl to callees in SEQ with frequency
@@ -2339,16 +2331,9 @@ pass_ipa_strub::adjust_at_calls_call (cgraph_edge *e, int named_args,
     vargs.quick_push (unshare_expr (swmp));
 
     for (; i < nargs; i++)
-#if 0
-      if (!bitmap_bit_p (args_to_skip, i))
-#endif
-	vargs.quick_push (gimple_call_arg (stmt, i));
+      vargs.quick_push (gimple_call_arg (stmt, i));
 
     if (gimple_call_internal_p (stmt))
-#if 0
-      new_stmt = gimple_build_call_internal_vec (gimple_call_internal_fn (stmt),
-						 vargs);
-#endif
       gcc_unreachable ();
     else
       new_stmt = gimple_build_call_vec (gimple_call_fn (stmt), vargs);
@@ -2357,12 +2342,7 @@ pass_ipa_strub::adjust_at_calls_call (cgraph_edge *e, int named_args,
     if (gimple_call_lhs (stmt))
       gimple_call_set_lhs (new_stmt, gimple_call_lhs (stmt));
 
-#if 0
-    gimple_set_vuse (new_stmt, gimple_vuse (stmt));
-    gimple_set_vdef (new_stmt, gimple_vdef (stmt));
-#else
     gimple_move_vops (new_stmt, stmt);
-#endif
 
     if (gimple_has_location (stmt))
       gimple_set_location (new_stmt, gimple_location (stmt));

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] strub: drop obsolete pp conditionals
@ 2023-10-06  4:29 Alexandre Oliva
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Oliva @ 2023-10-06  4:29 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d42e4a102c8829eb732b40b88b6d1226d4d8d6fc

commit d42e4a102c8829eb732b40b88b6d1226d4d8d6fc
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Thu Oct 5 04:23:19 2023 -0300

    strub: drop obsolete pp conditionals

Diff:
---
 gcc/ipa-strub.cc | 22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)

diff --git a/gcc/ipa-strub.cc b/gcc/ipa-strub.cc
index 861cd0cffa0..876828ad431 100644
--- a/gcc/ipa-strub.cc
+++ b/gcc/ipa-strub.cc
@@ -1898,20 +1898,12 @@ build_ref_type_for (tree parm, bool nonaliased = true)
      set seems to not run afoul of this problem, and it hopefully enables the
      compiler to tell the pointers do point to objects that are not otherwise
      aliased.  */
-#if 1
   tree qref_type = build_variant_type_copy (ref_type);
 
   TYPE_ALIAS_SET (qref_type) = new_alias_set ();
   record_alias_subset (TYPE_ALIAS_SET (qref_type), get_alias_set (ref_type));
 
   return qref_type;
-#else
-  tree qref_type = build_qualified_type (ref_type,
-					 TYPE_QUAL_RESTRICT
-					 | TYPE_QUAL_CONST);
-
-  return qref_type;
-#endif
 }
 
 /* Add cgraph edges from current_function_decl to callees in SEQ with frequency
@@ -2339,16 +2331,9 @@ pass_ipa_strub::adjust_at_calls_call (cgraph_edge *e, int named_args,
     vargs.quick_push (unshare_expr (swmp));
 
     for (; i < nargs; i++)
-#if 0
-      if (!bitmap_bit_p (args_to_skip, i))
-#endif
-	vargs.quick_push (gimple_call_arg (stmt, i));
+      vargs.quick_push (gimple_call_arg (stmt, i));
 
     if (gimple_call_internal_p (stmt))
-#if 0
-      new_stmt = gimple_build_call_internal_vec (gimple_call_internal_fn (stmt),
-						 vargs);
-#endif
       gcc_unreachable ();
     else
       new_stmt = gimple_build_call_vec (gimple_call_fn (stmt), vargs);
@@ -2357,12 +2342,7 @@ pass_ipa_strub::adjust_at_calls_call (cgraph_edge *e, int named_args,
     if (gimple_call_lhs (stmt))
       gimple_call_set_lhs (new_stmt, gimple_call_lhs (stmt));
 
-#if 0
-    gimple_set_vuse (new_stmt, gimple_vuse (stmt));
-    gimple_set_vdef (new_stmt, gimple_vdef (stmt));
-#else
     gimple_move_vops (new_stmt, stmt);
-#endif
 
     if (gimple_has_location (stmt))
       gimple_set_location (new_stmt, gimple_location (stmt));

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] strub: drop obsolete pp conditionals
@ 2023-10-05  7:37 Alexandre Oliva
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Oliva @ 2023-10-05  7:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8413667c60c2460295e57e2ed9c4fd3e75f0393e

commit 8413667c60c2460295e57e2ed9c4fd3e75f0393e
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Thu Oct 5 04:23:19 2023 -0300

    strub: drop obsolete pp conditionals

Diff:
---
 gcc/ipa-strub.cc | 22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)

diff --git a/gcc/ipa-strub.cc b/gcc/ipa-strub.cc
index 52f5761aa61..e4894026c82 100644
--- a/gcc/ipa-strub.cc
+++ b/gcc/ipa-strub.cc
@@ -1901,20 +1901,12 @@ build_ref_type_for (tree parm, bool nonaliased = true)
      set seems to not run afoul of this problem, and it hopefully enables the
      compiler to tell the pointers do point to objects that are not otherwise
      aliased.  */
-#if 1
   tree qref_type = build_variant_type_copy (ref_type);
 
   TYPE_ALIAS_SET (qref_type) = new_alias_set ();
   record_alias_subset (TYPE_ALIAS_SET (qref_type), get_alias_set (ref_type));
 
   return qref_type;
-#else
-  tree qref_type = build_qualified_type (ref_type,
-					 TYPE_QUAL_RESTRICT
-					 | TYPE_QUAL_CONST);
-
-  return qref_type;
-#endif
 }
 
 /* Add cgraph edges from current_function_decl to callees in SEQ with frequency
@@ -2342,16 +2334,9 @@ pass_ipa_strub::adjust_at_calls_call (cgraph_edge *e, int named_args,
     vargs.quick_push (unshare_expr (swmp));
 
     for (; i < nargs; i++)
-#if 0
-      if (!bitmap_bit_p (args_to_skip, i))
-#endif
-	vargs.quick_push (gimple_call_arg (stmt, i));
+      vargs.quick_push (gimple_call_arg (stmt, i));
 
     if (gimple_call_internal_p (stmt))
-#if 0
-      new_stmt = gimple_build_call_internal_vec (gimple_call_internal_fn (stmt),
-						 vargs);
-#endif
       gcc_unreachable ();
     else
       new_stmt = gimple_build_call_vec (gimple_call_fn (stmt), vargs);
@@ -2360,12 +2345,7 @@ pass_ipa_strub::adjust_at_calls_call (cgraph_edge *e, int named_args,
     if (gimple_call_lhs (stmt))
       gimple_call_set_lhs (new_stmt, gimple_call_lhs (stmt));
 
-#if 0
-    gimple_set_vuse (new_stmt, gimple_vuse (stmt));
-    gimple_set_vdef (new_stmt, gimple_vdef (stmt));
-#else
     gimple_move_vops (new_stmt, stmt);
-#endif
 
     if (gimple_has_location (stmt))
       gimple_set_location (new_stmt, gimple_location (stmt));

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-20  3:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20  3:48 [gcc(refs/users/aoliva/heads/testme)] strub: drop obsolete pp conditionals Alexandre Oliva
  -- strict thread matches above, loose matches on Subject: below --
2023-10-06  4:29 Alexandre Oliva
2023-10-05  7:37 Alexandre Oliva

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).