[llvm] InstrProf: Mark BiasLI as invariant. (PR #95588)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 1 07:26:28 PDT 2024


================
@@ -930,23 +930,8 @@ Value *InstrLowerer::getCounterAddress(InstrProfCntrInstBase *I) {
   LoadInst *&BiasLI = FunctionToProfileBiasMap[Fn];
   if (!BiasLI) {
----------------
chapuni wrote:

@ellishg I meant, "I'll do in the next opportunity."

I tried sinking LoadLI from the entry to each used block. It made things worse since they weren't optimized out in larger functions.

For now, I'll leave LoadLI untouched. I have to investigate and re-evaluate register spills.

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


More information about the llvm-commits mailing list