[all-commits] [llvm/llvm-project] 7c0089: [Matrix] Check if iterator is at beginning of BB i...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Tue Jun 14 13:37:35 PDT 2022
Author: Florian Hahn <flo at fhahn.com>
Date: 2022-06-14 (Tue, 14 Jun 2022)
[Matrix] Check if iterator is at beginning of BB in optimizeTranspose.
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.
Reviewed By: thegameg
Differential Revision: https://reviews.llvm.org/D127736
More information about the All-commits