[IR] Simplify BasicBlock::removePredecessor. NFCI.
authorJay Foad <jay.foad@amd.com>
Mon, 18 May 2020 15:24:18 +0000 (16:24 +0100)
committerJay Foad <jay.foad@amd.com>
Wed, 20 May 2020 08:58:21 +0000 (09:58 +0100)
commite5fc9a3604dca40c89cf243a5208a5135821099c
treeea6aad569a743605c032bf161661c543107cce4b
parenteba3dd52b14df200afd4b8dfff89d0bb088ba1e6
[IR] Simplify BasicBlock::removePredecessor. NFCI.

This is the second attempt at landing this patch, after fixing the
KeepOneInputPHIs behaviour to also keep zero input PHIs.

Differential Revision: https://reviews.llvm.org/D80141
llvm/include/llvm/IR/BasicBlock.h
llvm/lib/IR/BasicBlock.cpp