[SLP][NFC] Added test to exercise the cause of a crash caused by reordering.
authorVasileios Porpodas <vporpodas@google.com>
Thu, 12 May 2022 02:09:38 +0000 (19:09 -0700)
committerVasileios Porpodas <vporpodas@google.com>
Thu, 12 May 2022 18:20:54 +0000 (11:20 -0700)
commit76775bde8ad4c03e4f9d527e5fc1f75ebae266fe
tree21b69cfd3893d6a79e8a228303c848c9ab676edb
parent1170951c737773e22b686cac195e0d13b2441374
[SLP][NFC] Added test to exercise the cause of a crash caused by reordering.

This is to support 0950d4060cd916a1d08da657db2513d2ce3e38fa.
External users that can affect reordering, with range == VL.size() but
non consecutive (like stores to A[0],A[0],A[3],A[3]) would escape the check
for consecutive accesses and would cause a crash.
llvm/test/Transforms/SLPVectorizer/X86/reorder_with_external_users.ll