This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, vectorizer]: Fix PR tree-optimization/33742, Segfault in vectorizable_operation


Hello!

Attached patch introduces check for unsupported scalar types, where
get_vectype_for_scalar_type() returns NULL_TREE.

The same check was introduced in vectorizable_call(), to prevent
future failures due to the same cause.

(BTW: I belive that this patch also fixes PEAK 164.gzip failure at
http://vmakarov.fedorapeople.org/spec/index.html)

Patch was bootstrapped/regtested on i686-pc-linux-gnu.

OK for mainline?

2007-10-12  Uros Bizjak  <ubizjak@gmail.com>

	PR tree-optimization/33742
	* tree-vect-transform.c (vectorizable_operation): Return false
	if get_vectype_for_scalar_type for scalar_dest can't be determined.
	(vectorizable_call): Same for rhs_type and lhs_type.

testsuite/ChangeLog:

2007-10-12  Uros Bizjak  <ubizjak@gmail.com>

	PR tree-optimization/33742
	* gcc.dg/pr33742.c: New testcase.

Uros.

Attachment: pr33742.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]