-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Closed as not planned
Labels
Description
The following code snippet can be a source of crashes:
llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Lines 5016 to 5019 in 4a890c2
std::optional<int> Diff = | |
getPointersDiff(ScalarTy, Ptr0, ScalarTy, PtrN, *DL, *SE); | |
// Check that the sorted loads are consecutive. | |
if (static_cast<unsigned>(*Diff) == Sz - 1) |
when getPointersDiff
returns std::nullopt
. I see this problem recurring in a few other places in the file as well.