Skip to content

Bug in SLP Vectorizer #121489

Closed as not planned
Closed as not planned
@Nirhar

Description

@Nirhar

The following code snippet can be a source of crashes:

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions