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.
Paths
| Differential D127736
[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 Check if II is at the end before dereferencing it.
Diff Detail
Event TimelineThis 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 Closed by commit rG7c0089d7351c: [Matrix] Check if iterator is at beginning of BB in optimizeTranspose. (authored by fhahn). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 436729 llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
llvm/test/Transforms/LowerMatrixIntrinsics/transpose-opts-iterator-invalidation.ll
|