diff --git a/source/fuzz/fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp b/source/fuzz/fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp index 1b286dd1..ee05b684 100644 --- a/source/fuzz/fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp +++ b/source/fuzz/fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp @@ -50,6 +50,12 @@ void FuzzerPassAddLoopsToCreateIntConstantSynonyms::Apply() { auto constant = GetIRContext()->get_constant_mgr()->FindDeclaredConstant( constant_def->result_id()); + // We do not consider irrelevant constants + if (GetTransformationContext()->GetFactManager()->IdIsIrrelevant( + constant_def->result_id())) { + continue; + } + // We only consider integer constants (scalar or vector). if (!constant->AsIntConstant() && !(constant->AsVectorConstant() &&