[all-commits] [llvm/llvm-project] e9ecc4: [FlattenCFG] Add a test to demonstrate bug

Max Kazantsev via All-commits all-commits at lists.llvm.org
Fri Apr 21 02:43:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e9ecc484ecc5213ec527c10afd23400912833a8f
      https://github.com/llvm/llvm-project/commit/e9ecc484ecc5213ec527c10afd23400912833a8f
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2023-04-21 (Fri, 21 Apr 2023)

  Changed paths:
    M llvm/test/Transforms/Util/flattencfg.ll

  Log Message:
  -----------
  [FlattenCFG] Add a test to demonstrate bug

FlattenCFGOpt combines the conditions but doesn't update branch with a
new combined condition. It happens when one of the combinable condition
is inverted and has more then 1 user.

Patch by Aleksandr Popov!

Differential Revision: https://reviews.llvm.org/D148706




More information about the All-commits mailing list