Skip to content

Commit

Permalink
Remove unnecessary checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasniktel committed Sep 22, 2020
1 parent 0ba390f commit 363d864
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions source/fuzz/fuzzer_pass_add_synonyms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ void FuzzerPassAddSynonyms::Apply() {
[this](opt::Function* function, opt::BasicBlock* block,
opt::BasicBlock::iterator inst_it,
const protobufs::InstructionDescriptor& instruction_descriptor) {
// We don't insert synonyms into dead blocks since all non-pointer ids
// there are considered irrelevant and we can't create a synonym of an
// irrelevant id.
if (GetTransformationContext()->GetFactManager()->BlockIsDead(
block->id())) {
return;
}

// Skip |inst_it| if we can't insert anything above it. OpIAdd is just
// a representative of some instruction that might be produced by the
// transformation.
Expand Down

0 comments on commit 363d864

Please sign in to comment.