[llvm-branch-commits] [llvm] [ir] MD_prof is not UB-implying (PR #152420)

Mircea Trofin via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Aug 11 07:42:37 PDT 2025


================

----------------
mtrofin wrote:

It additionally needs `!SafetyInfo->isGuaranteedToExecute)` (see LICM.cpp - `hoist`, right after the `ORE->emit` bit)

iiuc the indirectbr is a pretty easy way to ensure that (I copied the test from sinking.ll)

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


More information about the llvm-branch-commits mailing list