[all-commits] [llvm/llvm-project] 8201e3: [BasicBlockUtils] Don't drop callbr with unique su...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Jul 18 03:26:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8201e3ef5c84561260218bc041209611aac690e3
      https://github.com/llvm/llvm-project/commit/8201e3ef5c84561260218bc041209611aac690e3
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-07-18 (Mon, 18 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
    M llvm/test/Transforms/SimplifyCFG/callbr-destinations.ll

  Log Message:
  -----------
  [BasicBlockUtils] Don't drop callbr with unique successor

As callbr is now allowed to have duplicate destinations, we can
have a callbr with a unique successor. Make sure it doesn't get
dropped, as we still need to preserve the side-effect.




More information about the All-commits mailing list