Skip to content

Commit

Permalink
Revert "[InstCombine] Erase old instruction when replacing extractele…
Browse files Browse the repository at this point in the history
…ments"

This reverts commit d40368f.

llvm-clang-x86_64-expensive-checks-debian failure looks related.
  • Loading branch information
nikic committed Apr 1, 2020
1 parent 2a77544 commit 50a3e87
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
Expand Up @@ -597,7 +597,6 @@ static void replaceExtractElements(InsertElementInst *InsElt,
auto *NewExt = ExtractElementInst::Create(WideVec, OldExt->getOperand(1));
NewExt->insertAfter(OldExt);
IC.replaceInstUsesWith(*OldExt, NewExt);
IC.eraseInstFromFunction(*OldExt);
}
}

Expand Down

0 comments on commit 50a3e87

Please sign in to comment.