[PATCH] D86490: [CSSPGO] IR instrinsic for pseudo-probe block instrumentation
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 16:08:54 PDT 2020
hoy added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1986
+ if (CurI.mayHaveSideEffects() && !isa<StoreInst>(CurI) &&
+ !isa<PseudoProbeInst>(CurI))
return nullptr;
----------------
wmi wrote:
> Can we check CallBase::onlyAccessesInaccessibleMemory instead of checking PseudoProbeInst here?
Good question. Checking against `PseudoProbeInst` is more than `onlyAccessesInaccessibleMemory`. The instruction identified here will be either converted to a `select` or deleted. I probably should move the `PseudoProbeInst` check into `BrBB->instructionsWithoutDebug()`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86490/new/
https://reviews.llvm.org/D86490
More information about the llvm-commits
mailing list