[all-commits] [llvm/llvm-project] 4fba35: [InstCombine] Clarify invoke/callbr handling in co...

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


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

  Log Message:
  -----------
  [InstCombine] Clarify invoke/callbr handling in constexpr call fold (NFCI)

We only need to check the block for the normal/default destination,
not for other destinations. Using the value in those would be
illegal anyway.

The callbr case cannot actually happen here, because callbr is
currently limited to inline asm. Retaining it to match the spirit
of the original code.




More information about the All-commits mailing list