[PATCH] D98884: [IR] Ignore bitcasts of function pointers which are only used as callees in callbase instruction
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 26 10:53:17 PDT 2021
rampitec added a comment.
In D98884#2653361 <https://reviews.llvm.org/D98884#2653361>, @madhur13490 wrote:
> In D98884#2653291 <https://reviews.llvm.org/D98884#2653291>, @rampitec wrote:
>
>> This should work I guess. It needs tests for non-callee use and non call base uses. I would also prefer to GlobalOpt change to be extracted into a separate patch.
>
> non call base users - What all such cases possible?We can use invoke but that is also CallBase.
That is more than possible. Take a pointer and store it, compare to another pointer, bitcast and store or compare.
> non callee - ignore-bitcast-call-argument-callee.ll is similar to what to suggest.
Yes, but this is not for global opt.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98884/new/
https://reviews.llvm.org/D98884
More information about the llvm-commits
mailing list