[PATCH] D69862: [IR] PR27065: Part1. Fix BasicBlock::removePredecessor to not break SSA form.

Denis Bakhvalov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 11:25:05 PST 2019


dendibakh created this revision.
dendibakh added reviewers: lebedev.ri, spatel, grosser.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

In certain cases BasicBlock::removePredecessor generates self-referencing instructions.

This patch fixes one of such cases.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69862

Files:
  llvm/lib/IR/BasicBlock.cpp
  llvm/unittests/IR/BasicBlockTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69862.227931.patch
Type: text/x-patch
Size: 4623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191105/4bb55cd4/attachment-0001.bin>


More information about the llvm-commits mailing list