Commit 220e82b4 by Dorit Nuzman Committed by Dorit Nuzman

re PR tree-optimization/33373 (ICE in vectorizable_type_demotion, at tree-vect-transform.c:4098)

        PR tree-optimization/33373
        * tree-vect-analyze (vect_determine_vectorization_factor): Call
        TREE_INT_CST_LOW when comparing TYPE_SIZE_UNIT.

From-SVN: r128415
parent bf019a1f
2007-09-12 Dorit Nuzman <dorit@il.ibm.com>
PR tree-optimization/33373
* tree-vect-analyze (vect_determine_vectorization_factor): Call
TREE_INT_CST_LOW when comparing TYPE_SIZE_UNIT.
2007-09-12 Jan Hubicka <jh@suse.cz>
PR target/33393
2007-09-12 Dorit Nuzman <dorit@il.ibm.com>
PR tree-optimization/33373
* gcc.dg/vect/pr33373.c: New test.
2007-09-12 Ben Elliston <bje@au.ibm.com>
* lib/target-supports.exp (check_effective_target_vect_no_double):
/* { dg-do compile } */
void DOSMEM_FillIsrTable(int*isr) {
int i;
for (i=0; i<256; i++)
isr[i]=(((short)((i*4) & 0xFFFF)) | (0xf000 & 0xFFFF) << 16);
}
/* { dg-final { cleanup-tree-dump "vect" } } */
......@@ -242,11 +242,12 @@ vect_determine_vectorization_factor (loop_vec_info loop_vinfo)
operation = GIMPLE_STMT_OPERAND (stmt, 1);
if (TREE_CODE (operation) == NOP_EXPR
|| TREE_CODE (operation) == CONVERT_EXPR
|| TREE_CODE (operation) == WIDEN_MULT_EXPR)
|| TREE_CODE (operation) == WIDEN_MULT_EXPR)
{
tree rhs_type = TREE_TYPE (TREE_OPERAND (operation, 0));
if (TYPE_SIZE_UNIT (rhs_type) < TYPE_SIZE_UNIT (scalar_type))
scalar_type = TREE_TYPE (TREE_OPERAND (operation, 0));
if (TREE_INT_CST_LOW (TYPE_SIZE_UNIT (rhs_type)) <
TREE_INT_CST_LOW (TYPE_SIZE_UNIT (scalar_type)))
scalar_type = rhs_type;
}
if (vect_print_dump_info (REPORT_DETAILS))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment