[all-commits] [llvm/llvm-project] 20962c: [SimplifyCFG] Don't split predecessors of callbr t...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jul 6 06:39:11 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 20962c1240691d25b21ce425313c81eed0b1b358
      https://github.com/llvm/llvm-project/commit/20962c1240691d25b21ce425313c81eed0b1b358
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-07-06 (Wed, 06 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/test/Transforms/SimplifyCFG/jump-threading.ll

  Log Message:
  -----------
  [SimplifyCFG] Don't split predecessors of callbr terminator

This addresses the assertion failure reported in
https://reviews.llvm.org/D124159#3631240.

I believe that this limitation in SplitBlockPredecessors is not
actually necessary (because unlike with indirectbr, callbr is
restricted in a way that does allow updating successors), but for
now fix the assertion failure the same way we do everywhere else,
by also skipping callbr.




More information about the All-commits mailing list