aboutsummaryrefslogtreecommitdiff
path: root/libcpp/lex.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-08-08 11:36:43 +0200
committerRichard Biener <rguenth@gcc.gnu.org>2024-08-20 13:01:40 +0200
commitb8ea13ebf1211714503fd72f25c04376483bfa53 (patch)
tree45e9c5df211ace9a951f1213b630f4f9e83334c3 /libcpp/lex.cc
parent35f56012806432fd89bbae431950a8dc5f6729a3 (diff)
downloadgcc-b8ea13ebf1211714503fd72f25c04376483bfa53.zip
gcc-b8ea13ebf1211714503fd72f25c04376483bfa53.tar.gz
gcc-b8ea13ebf1211714503fd72f25c04376483bfa53.tar.bz2
tree-optimization/116274 - overzealous SLP vectorization
The following tries to address that the vectorizer fails to have precise knowledge of argument and return calling conventions and views some accesses as loads and stores that are not. This is mainly important when doing basic-block vectorization as otherwise loop indexing would force such arguments to memory. On x86 the reduction in the number of apparent loads and stores often dominates cost analysis so the following tries to mitigate this aggressively by adjusting only the scalar load and store cost, reducing them to the cost of a simple scalar statement, but not touching the vector access cost which would be much harder to estimate. Thereby we error on the side of not performing basic-block vectorization. PR tree-optimization/116274 * tree-vect-slp.cc (vect_bb_slp_scalar_cost): Cost scalar loads and stores as simple scalar stmts when they access a non-global, not address-taken variable that doesn't have BLKmode assigned. * gcc.target/i386/pr116274-2.c: New testcase.
Diffstat (limited to 'libcpp/lex.cc')
0 files changed, 0 insertions, 0 deletions