[llvm] InstrProf: Mark BiasLI as invariant. (PR #95588)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 21 15:32:41 PDT 2024
================
@@ -930,23 +930,8 @@ Value *InstrLowerer::getCounterAddress(InstrProfCntrInstBase *I) {
LoadInst *&BiasLI = FunctionToProfileBiasMap[Fn];
if (!BiasLI) {
----------------
ellishg wrote:
I think as long as you don't rely on `Fn->getEntryBlock().front()` it should be fine.
https://github.com/llvm/llvm-project/pull/95588
More information about the llvm-commits
mailing list