[llvm-branch-commits] [llvm] [profcheck][SimplifyCFG] Propagate !prof from `switch` to `select` (PR #159645)

Mircea Trofin via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Sep 24 08:15:12 PDT 2025


mtrofin wrote:

> In general this patch LGTM.
> 
> I noticed that one downside of using `-profcheck-weights-for-test` is that the original branch weights aren't in the test, so it's hard for me to understand how this change modifies the branch weights.

You're right. I think I'll just use `-profcheck-weights-for-test` "offline" to generate the .ll that is checked in. It's a convenience anyway - to avoid one having to write interesting profile metadata by hand in large tests. wdyt?

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


More information about the llvm-branch-commits mailing list