]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR tree-optimization/63844 (open mp parallelization prevents vectorization)
authorRichard Biener <rguenther@suse.de>
Tue, 24 Feb 2015 15:09:00 +0000 (15:09 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 24 Feb 2015 15:09:00 +0000 (15:09 +0000)
2015-02-24  Richard Biener  <rguenther@suse.de>

Backport from mainline
2014-11-19  Richard Biener  <rguenther@suse.de>

PR tree-optimization/63844
* omp-low.c (fixup_child_record_type): Use a restrict qualified
referece type for the receiver parameter.

From-SVN: r220941

gcc/ChangeLog
gcc/omp-low.c

index 2231c35aef85aaf457303184494de43047271013..6ee0c856eecd483084dbcb1f092a5399f4285ca6 100644 (file)
@@ -1,3 +1,12 @@
+2015-02-24  Richard Biener  <rguenther@suse.de>
+
+       Backport from mainline
+       2014-11-19  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/63844
+       * omp-low.c (fixup_child_record_type): Use a restrict qualified
+       referece type for the receiver parameter.
+
 2015-02-24  Richard Biener  <rguenther@suse.de>
 
        Backport from mainline
index fc7c9910168d003b41e5b87cdc914b8f386f44b2..694d24f11ae1b80dccca83ae88fbca8801c72f62 100644 (file)
@@ -1369,7 +1369,8 @@ fixup_child_record_type (omp_context *ctx)
       layout_type (type);
     }
 
-  TREE_TYPE (ctx->receiver_decl) = build_pointer_type (type);
+  TREE_TYPE (ctx->receiver_decl)
+    = build_qualified_type (build_reference_type (type), TYPE_QUAL_RESTRICT);
 }
 
 /* Instantiate decls as necessary in CTX to satisfy the data sharing