summaryrefslogtreecommitdiff
path: root/gcc/tree-loop-distribution.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2016-08-15 08:31:05 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2016-08-15 08:31:05 +0000
commit98b374b4ebe2297e907559e90f4e9c818cf1d4c3 (patch)
tree8dab788dcaf37f22003b5950841f7d928b4c60f8 /gcc/tree-loop-distribution.c
parent1133d0515cc8c59be5e6a4834ffb13a68e38945b (diff)
downloadgcc-98b374b4ebe2297e907559e90f4e9c818cf1d4c3.tar.gz
PR tree-optimization/72824
* tree-loop-distribution.c (const_with_all_bytes_same) <case VECTOR_CST>: Fix a typo. * gcc.c-torture/execute/ieee/pr72824-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239461 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-loop-distribution.c')
-rw-r--r--gcc/tree-loop-distribution.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c
index 342b9647fe7..5580f286ccf 100644
--- a/gcc/tree-loop-distribution.c
+++ b/gcc/tree-loop-distribution.c
@@ -774,7 +774,7 @@ const_with_all_bytes_same (tree val)
case VECTOR_CST:
unsigned int j;
for (j = 0; j < VECTOR_CST_NELTS (val); ++j)
- if (const_with_all_bytes_same (VECTOR_CST_ELT (val, i)))
+ if (const_with_all_bytes_same (VECTOR_CST_ELT (val, j)))
break;
if (j == VECTOR_CST_NELTS (val))
return 0;