diff options
author | Tamar Christina <tamar.christina@arm.com> | 2024-07-03 09:31:09 +0100 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2024-07-03 09:31:09 +0100 |
commit | 735edbf1e2479fa2323a2b4a9714fae1a0925f74 (patch) | |
tree | 0b2a4b2fc4e9a0e918f34961ca76bcc93e906515 /gcc/tree-vect-patterns.cc | |
parent | 25127123100f04c2d5d70c6933a5f5aedcd69c40 (diff) | |
download | gcc-735edbf1e2479fa2323a2b4a9714fae1a0925f74.zip gcc-735edbf1e2479fa2323a2b4a9714fae1a0925f74.tar.gz gcc-735edbf1e2479fa2323a2b4a9714fae1a0925f74.tar.bz2 |
ivopts: replace constant_multiple_of with aff_combination_constant_multiple_p [PR114932]
The current implementation of constant_multiple_of is doing a more limited
version of aff_combination_constant_multiple_p.
The only non-debug usage of constant_multiple_of will proceed with the values
as affine trees. There is scope for further optimization here, namely I believe
that if constant_multiple_of returns the aff_tree after the conversion then
get_computation_aff_1 can use it instead of manually creating the aff_tree.
However I think it makes sense to first commit this smaller change and then
incrementally change things.
gcc/ChangeLog:
PR tree-optimization/114932
* tree-ssa-loop-ivopts.cc (constant_multiple_of): Use
aff_combination_constant_multiple_p instead.
Diffstat (limited to 'gcc/tree-vect-patterns.cc')
0 files changed, 0 insertions, 0 deletions