[PATCH] D69740: [profile] Support counter relocation at runtime
Florian Hahn via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 28 02:33:08 PDT 2022
fhahn added inline comments.
Herald added subscribers: abrachet, MaskRay.
Herald added a project: All.
================
Comment at: llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp:673
+ auto *Add = Builder.CreateAdd(Builder.CreatePtrToInt(Addr, Int64Ty), LI);
+ Addr = Builder.CreateIntToPtr(Add, Int64PtrTy);
+ }
----------------
It looks like this may be creating invalid IR in some cases: https://github.com/llvm/llvm-project/issues/55125
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69740/new/
https://reviews.llvm.org/D69740
More information about the cfe-commits
mailing list