]> 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)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Thu, 22 Apr 2021 17:14:27 +0000 (10:14 -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 b15f5d0de0dafa33829ac3d18095ea6c09c5f2e8..b1bc945898a4ddd30d3101cd8d8cb8199f44d28f 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-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
            Andrew Stubbs   <ams@codesourcery.com>
 
index fb30a8627f429ee8ee45e061a7706d81279b6b66..58a45e5c5a4a8232c07329a3fedce1722b763de1 100644 (file)
@@ -484,9 +484,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)