re PR tree-optimization/77283 (Revision 238005 disables loop unrolling)
authorRichard Biener <rguenther@suse.de>
Fri, 13 Jan 2017 08:47:57 +0000 (08:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 13 Jan 2017 08:47:57 +0000 (08:47 +0000)
2017-01-13  Richard Biener  <rguenther@suse.de>

PR tree-optimization/77283
* gcc.dg/tree-ssa/split-path-9.c: Fix.

From-SVN: r244394

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/split-path-9.c

index 91b769c0be5118a323324a721919f89ac565d6f6..379eebea7594ed50fa91fa32740a46b8c3274db9 100644 (file)
@@ -1,3 +1,8 @@
+2017-01-13  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/77283
+       * gcc.dg/tree-ssa/split-path-9.c: Fix.
+
 2017-01-13  Richard Biener  <rguenther@suse.de>
 
        * gcc.dg/gimplefe-22.c: New testcase.
index bd4ee76f82b7892c252ed2f4e74dc9915006accc..8be0cd01201fa06295ac737481078a13621966e0 100644 (file)
@@ -9,8 +9,8 @@ foo(unsigned int size, unsigned int *state)
 
   for(i = 0; i < size; i++)
     {
-      if(*state & 1)
-       *state ^= 1;
+      if(state[i] & 1)
+       state[i] ^= 1;
     }
 }