[llvm] InstrProf: Mark BiasLI as invariant. (PR #95588)
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 21 15:13:22 PDT 2024
================
@@ -930,23 +930,8 @@ Value *InstrLowerer::getCounterAddress(InstrProfCntrInstBase *I) {
LoadInst *&BiasLI = FunctionToProfileBiasMap[Fn];
if (!BiasLI) {
----------------
chapuni wrote:
@ellishg I've confirmed it works fine if `FunctionToProfileBiasMap` is eliminated and make this load in-place, since redundant `BiasLI` is optimized out.
Do you think this shall be preserved? (6e23cd2bf073ab5eb5a103b935af54046d007c52)
https://github.com/llvm/llvm-project/pull/95588
More information about the llvm-commits
mailing list