diff options
author | Richard Biener <rguenther@suse.de> | 2025-08-28 14:27:01 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2025-09-04 12:36:30 +0200 |
commit | e8969a86c1052e2949028f38daf8e273e7ecb106 (patch) | |
tree | 8a6d30197fed62eedd82e097589a1c429b7b550a /libjava/java/awt/print | |
parent | adfe96eb612feeb6abb2ecac267325243039a0f8 (diff) | |
download | gcc-e8969a86c1052e2949028f38daf8e273e7ecb106.zip gcc-e8969a86c1052e2949028f38daf8e273e7ecb106.tar.gz gcc-e8969a86c1052e2949028f38daf8e273e7ecb106.tar.bz2 |
tree-optimization/121685 - accesses to *this are not trapping
When inside a method then we know the this pointer points to
an object of at least the size of the methods base type. We
can use this to compute more references as not trapping and
enable invariant motion and in turn vectorization as for a
slightly modified version of the testcase in the PR.
PR tree-optimization/121685
* tree-eh.cc (ref_outside_object_p): Split out from ...
(tree_could_trap_p): ... here. Assume the this pointer
of a method refers to an object of at least size of its
base type.
* g++.dg/vect/pr121685-1.cc: New testcase.
Diffstat (limited to 'libjava/java/awt/print')
0 files changed, 0 insertions, 0 deletions