]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[og10] openacc: Delete useless temp in gcn-tree.c
authorJulian Brown <julian@codesourcery.com>
Tue, 28 Jul 2020 15:13:36 +0000 (08:13 -0700)
committerJulian Brown <julian@codesourcery.com>
Thu, 30 Jul 2020 22:01:46 +0000 (15:01 -0700)
This is an obvious cleanup to get rid of an unnecessary temporary
variable.

2020-07-30  Julian Brown  <julian@codesourcery.com>

gcc/
* config/gcn/gcn-tree.c (gcn_goacc_reduction_teardown): Remove useless
temporary variable "decl".

gcc/ChangeLog.omp
gcc/config/gcn/gcn-tree.c

index 9e6e95f667b73d748f670b7e58b9d551054840ba..12b8c044a1b1645803da57193a68e5c08d975148 100644 (file)
@@ -1,3 +1,8 @@
+2020-07-30  Julian Brown  <julian@codesourcery.com>
+
+       * config/gcn/gcn-tree.c (gcn_goacc_reduction_teardown): Remove useless
+       temporary variable "decl".
+
 2020-07-17  Andrew Stubbs  <ams@codesourcery.com>
 
        Backport from mainline (42b47dae498):
index 1dc9b21823b04bc39143426e5f63b7df55e96682..bfde71555d8a6dd0054238b4624f4c90b52105f9 100644 (file)
@@ -603,9 +603,7 @@ gcn_goacc_reduction_teardown (gcall *call)
 
       /* Read the worker reduction buffer.  */
       tree offset = gimple_call_arg (call, 5);
-      tree decl
-       = gcn_goacc_get_worker_red_decl (var_type, TREE_INT_CST_LOW (offset));
-      var = decl;
+      var = gcn_goacc_get_worker_red_decl (var_type, TREE_INT_CST_LOW (offset));
     }
 
   if (level != GOMP_DIM_GANG)