]> git.ipfire.org Git - thirdparty/gcc.git/commit
Hide IVOPTs strip_offset
authorRichard Biener <rguenther@suse.de>
Wed, 21 Jun 2023 09:12:36 +0000 (11:12 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 21 Jun 2023 11:38:02 +0000 (13:38 +0200)
commitfb0447b1f6b7373f57cb3a3d17a46803cfd9909d
tree81b3a283fa1256e3b266c621f282ca4306950f20
parentbb3c69058a5fb874ea3c5c26bfb331d33d0497c3
Hide IVOPTs strip_offset

PR110243 shows strip_offset has some correctness issues, the following
avoids using it from loop distribution which can use the more correct
split_constant_offset from data-ref analysis instead.  The patch then
un-exports the function from IVOPTs.

* tree-loop-distribution.cc (classify_builtin_st): Use
split_constant_offset.
* tree-ssa-loop-ivopts.h (strip_offset): Remove.
* tree-ssa-loop-ivopts.cc (strip_offset): Make static.
gcc/tree-loop-distribution.cc
gcc/tree-ssa-loop-ivopts.cc
gcc/tree-ssa-loop-ivopts.h