[all-commits] [llvm/llvm-project] 374cbf: [licm] clone `MD_prof` when hoisting conditional b...
Mircea Trofin via All-commits
all-commits at lists.llvm.org
Tue Aug 12 17:01:22 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 374cbfd3275d0a4ee9c52807a8170b423a13ffa2
https://github.com/llvm/llvm-project/commit/374cbfd3275d0a4ee9c52807a8170b423a13ffa2
Author: Mircea Trofin <mtrofin at google.com>
Date: 2025-08-13 (Wed, 13 Aug 2025)
Changed paths:
M llvm/lib/IR/Instruction.cpp
M llvm/lib/Transforms/Scalar/LICM.cpp
A llvm/test/Transforms/LICM/hoist-phi-metadata.ll
Log Message:
-----------
[licm] clone `MD_prof` when hoisting conditional branch (#152232)
The profiling - related metadata information for the hoisted conditional branch should be copied from the original branch, not from the current terminator of the block it's hoisted to.
The patch adds a way to disable the fix just so we can do an ablation test, after which the flag will be removed. The same flag will be reused for other similar fixes.
(This was identified through `profcheck` (see Issue #147390), and this PR addresses most of the test failures (when running under profcheck) under `Transforms/LICM`.)
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