This is an archive of the discontinued LLVM Phabricator instance.

[Matrix] Check if iterator is at beginning of BB in optimizeTranspose.
ClosedPublic

Authored by fhahn on Jun 14 2022, 3:40 AM.

Details

Summary

If an instruction at the beginning of a block is erased, this may
trigger crash due to dereferencing an invalid iterator.

Check if II is at the end before dereferencing it.

Diff Detail

Event Timeline

fhahn created this revision.Jun 14 2022, 3:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 3:40 AM
fhahn requested review of this revision.Jun 14 2022, 3:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 3:40 AM
thegameg accepted this revision.Jun 14 2022, 11:55 AM

LGTM thanks!

This revision is now accepted and ready to land.Jun 14 2022, 11:55 AM
This revision was landed with ongoing or failed builds.Jun 14 2022, 1:37 PM
This revision was automatically updated to reflect the committed changes.