[patch] PR31041 - fix vectorizer ICE

Dorit Nuzman DORIT@il.ibm.com
Thu Mar 15 10:37:00 GMT 2007


Hi,

We generate the following invalid gimple:

  stmp_var_.41_63 = (int) j_34 + 1;
  stmp_var_.42_64 = stmp_var_.41_63 + 1;
  stmp_var_.43_65 = stmp_var_.42_64 + 1;
  vect_cst_.44_66 = {(int) j_34, stmp_var_.41_63,
stmp_var_.42_64,stmp_var_.43_65};

This patch fixes that by calling force_gimple_operand.

Bootstrapped on powerpc-linux, tested on the vectorizer testcases.
OK for mainline once completes full regression testing?

thanks,
dorit

        PR tree-optimization/31041
        * tree-vect-transform.c (get_initial_def_for_induction): Call
        force_gimple_operand.

(See attached file: mar15.txt)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mar15.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070315/6c588a76/attachment.txt>


More information about the Gcc-patches mailing list