aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorKugan Vivekanandarajah <kvivekananda@nvidia.com>2024-10-31 07:23:10 +1100
committerKugan Vivekanandarajah <kvivekananda@nvidia.com>2024-10-31 07:23:16 +1100
commitacba8b3d8dec0124c8b3a7e112b3a784a5091214 (patch)
treec61a8c40f9bca86c66fff80e92ddd3dc6ad4a7d4 /gcc/expr.cc
parent5be5c66071b407a767856b8fa300ede54fcf11b4 (diff)
downloadgcc-acba8b3d8dec0124c8b3a7e112b3a784a5091214.zip
gcc-acba8b3d8dec0124c8b3a7e112b3a784a5091214.tar.gz
gcc-acba8b3d8dec0124c8b3a7e112b3a784a5091214.tar.bz2
[PATCH] Fix SLP when ifcvt versioned loop is not vectorized
When ifcvt version a loop, it sets dont_vectorize to the scalar loop. If the vector loop is not vectorized and removed, the scalar loop is still left with dont_vectorize. As a result, BB vectorization will not happen. This patch resets dont_vectorize to scalar loop when IFN_LOOP_VECTORIZED is set to false. gcc/ChangeLog: * tree-vectorizer.cc (pass_vectorize::execute): Reset dont_vectorize to scalar loop when setting IFN_LOOP_VECTORIZED to false. gcc/testsuite/ChangeLog: * gcc.dg/vect/bb-slp-77.c: New test.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions