[all-commits] [llvm/llvm-project] 5db6c9: [SimplifyCFG] Don't merge invoke if this makes imm...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon May 1 21:22:48 PDT 2023

  Branch: refs/heads/release/16.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 5db6c9daf03306cc368da3a36a964e551c1d005d
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-05-01 (Mon, 01 May 2023)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/test/Transforms/SimplifyCFG/X86/merge-compatible-invokes-of-landingpad.ll
    M llvm/test/Transforms/SimplifyCFG/merge-deopt-bundle-constants.ll

  Log Message:
  [SimplifyCFG] Don't merge invoke if this makes immarg non-constant (PR61265)

Don't merge invokes if this replaces constant operands with phis
in a place where this is not legal.

This also disallows converting operand bundles from constant to
non-constant, in line with the restriction we use in other

Fixes https://github.com/llvm/llvm-project/issues/61265.

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

(cherry picked from commit 11313108ff778ab6037dcf3d6057de6e1d26fb80)

More information about the All-commits mailing list