[all-commits] [llvm/llvm-project] ce134d: [IR] simplify code in removePredecessor(); NFCI

RotateRight via All-commits all-commits at lists.llvm.org
Sun Nov 29 07:00:08 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ce134da4b18c27bbeba4e32f5813b1a3b043066e
      https://github.com/llvm/llvm-project/commit/ce134da4b18c27bbeba4e32f5813b1a3b043066e
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2020-11-29 (Sun, 29 Nov 2020)

  Changed paths:
    M llvm/lib/IR/BasicBlock.cpp

  Log Message:
  -----------
  [IR] simplify code in removePredecessor(); NFCI

As suggested in D92247 (and independent of whatever we decide to do there),
this code is confusing as-is. Hopefully, this is at least mildly better.

We might be able to do better still, but we have a function called
"removePredecessor" with this behavior:
"Note that this function does not actually remove the predecessor." (!)




More information about the All-commits mailing list