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]

[autovect] [patch] Handle COMPONENT_REF and INDIRECT_REF bases in base_object_differ_p





This patch adds a support for COMPONENT_REF and INDIRECT_REF bases
comparison in base_object_differ_p (e.g., a.b[] and (*p)[]). This case was
not handled until now. Testcase attached.

For now, the function omega_dependence_tester was #if 0, since it exists
for testing only and causes warnings in compilation.

Bootstrapped and tested on ppc-darwin. Committed to autovect branch.

Thanks,
Ira

ChangeLog entry:

      * tree-data-ref.c (ptr_ptr_may_alias_p): New function.
      (may_alias_p): Call ptr_ptr_may_alias_p.
      (base_object_differ_p): Handle COMPONENT_REF and INDIRECT_REF bases.
      (omega_compute_classic_representations): Put within #if 0 to avoid
warnings.
      (omega_dependence_tester): Likewise.

Patch:
(See attached file: diff.june6)

Testcase:
(See attached file: vect-6.f90)

Attachment: diff.june6
Description: Binary data

Attachment: vect-6.f90
Description: Binary data


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