[IndirectFunctions] Skip propagating attributes to address taken functions
authormadhur13490 <Madhur.Amilkanthwar@amd.com>
Wed, 13 Jan 2021 09:32:29 +0000 (09:32 +0000)
committermadhur13490 <Madhur.Amilkanthwar@amd.com>
Thu, 21 Jan 2021 07:04:28 +0000 (07:04 +0000)
commitdd8ae42674b494e46ec40a22f40068db2b4a8b60
treef7a7647cee33ca4d2fae026a0ec319492756eb5d
parent6de4865545da73687dd6d28d153cd345ed5e7918
[IndirectFunctions] Skip propagating attributes to address taken functions

In case of indirect calls or address taken functions,
skip propagating any attributes to them. We just
propagate features to such functions.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D94585
llvm/lib/Target/AMDGPU/AMDGPUPropagateAttributes.cpp
llvm/test/CodeGen/AMDGPU/propagate-attributes-common-callees.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/propagate-attributes-direct-indirect-common-callee.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/propagate-attributes-direct-indirect.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/propagate-attributes-indirect.ll [new file with mode: 0644]