This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Fix PR52090: clang crashes: Assertion `Index < Length && "Invalid index!"' failed.
ClosedPublic

Authored by ABataev on Oct 14 2021, 6:42 AM.

Details

Summary

Need to check that either Idx is UndefMaskElem and value is UndefValue
or Idx is valid and value is the same as the scalar value in the node.

Diff Detail

Event Timeline

ABataev created this revision.Oct 14 2021, 6:42 AM
ABataev requested review of this revision.Oct 14 2021, 6:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2021, 6:42 AM
ABataev updated this revision to Diff 379703.Oct 14 2021, 6:44 AM

Fix summary.

ABataev retitled this revision from [LSP]Fix PR52090: clang crashes: Assertion `Index < Length && "Invalid index!"' failed. to [SLP]Fix PR52090: clang crashes: Assertion `Index < Length && "Invalid index!"' failed..Oct 14 2021, 6:44 AM
RKSimon accepted this revision.Oct 14 2021, 7:03 AM

LGTM

This revision is now accepted and ready to land.Oct 14 2021, 7:03 AM
spatel accepted this revision.Oct 14 2021, 7:54 AM