[llvm] Reapply [Metadata] Preserve MD_prof when merging instructions when one is missing. (PR #135418)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 11 12:33:16 PDT 2025


nikic wrote:

> Also add a legality check when merging prof metadata based on instruction type. Without this check GVN PRE optimizations result in prof metadata on phi nodes which break the module verifier.

Can you please explain in more detail what happens? This sounds suspicious.

https://github.com/llvm/llvm-project/pull/135418


More information about the llvm-commits mailing list