[PATCH] D101847: [AMDGPU] Fix function pointer argument bug in AMDGPU Propagate Attributes pass.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 4 11:04:32 PDT 2021
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUPropagateAttributes.cpp:252
CallBase *CI = dyn_cast<CallBase>(I);
- if (!CI)
+ if (!CI || CI->getCalledFunction() != &F)
continue;
----------------
What if the callee was a bitcast of the function? Can you add another testcase with a constexpr function pointer cast?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101847/new/
https://reviews.llvm.org/D101847
More information about the llvm-commits
mailing list