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] Fix bug in offset and misalignment calculation in the vectorizer.





Since offset and misalignment values can be negative (e.g., vect-76.c), we
have to use ssizetype instead of sizetype.

This patch also removes redundant calls to fold after size_binop.

Bootstrapped and tested on ppc-darwin.

O.K. for mainline?

Changelog entry:

2005-01-25  Ira Rosen  <irar@il.ibm.com>

      * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
sizetype.
      (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
redundant
      fold. Fix misalignment for MINUS_EXPR.
      (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
      (vect_analyze_pointer_ref_access): Likewise.
      (vect_get_memtag_and_dr): Likewise.

Patch:
(See attached file: diff.jan25)

Attachment: diff.jan25
Description: Binary data


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