[all-commits] [llvm/llvm-project] f405c6: [OPT] Search whole BB for convergence token. (#112...

Steven Perron via All-commits all-commits at lists.llvm.org
Wed Oct 30 08:19:45 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f405c683ba929fcd0bcaa435ca2fbe4bb221d04b
      https://github.com/llvm/llvm-project/commit/f405c683ba929fcd0bcaa435ca2fbe4bb221d04b
  Author: Steven Perron <stevenperron at google.com>
  Date:   2024-10-30 (Wed, 30 Oct 2024)

  Changed paths:
    M llvm/lib/Transforms/Utils/InlineFunction.cpp
    M llvm/test/Transforms/Inline/convergence-inline.ll

  Log Message:
  -----------
  [OPT] Search whole BB for convergence token. (#112728)

The spec for llvm.experimental.convergence.entry says that is must be in
the entry block for a function, and must preceed any other convergent
operation. It does not have to be the first instruction in the entry
block.

Inlining assumes that the call to llvm.experimental.convergence.entry
will be the first instruction after any phi instructions. This commit
modifies inlining to search the entire block for the call.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list