mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-26 21:30:07 +00:00
spirv-fuzz: Skip dead blocks in FuzzerPassAddOpPhiSynonyms (#3965)
Fixes #3949.
This commit is contained in:
parent
5600fb85b6
commit
26954c281e
@ -51,6 +51,12 @@ void FuzzerPassAddOpPhiSynonyms::Apply() {
|
||||
continue;
|
||||
}
|
||||
|
||||
// The block must not be dead.
|
||||
if (GetTransformationContext()->GetFactManager()->BlockIsDead(
|
||||
block.id())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// The block must have at least one predecessor.
|
||||
size_t num_preds = GetIRContext()->cfg()->preds(block.id()).size();
|
||||
if (num_preds == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user