[AMDGPU] Hide "removing function" diagnostics by default
authorpvanhout <pierre.vanhoutryve@amd.com>
Thu, 6 Apr 2023 12:07:41 +0000 (14:07 +0200)
committerpvanhout <pierre.vanhoutryve@amd.com>
Tue, 11 Apr 2023 07:26:20 +0000 (09:26 +0200)
commit0ff02cf015d3e6bdf80e971355faf5e6b98bd9e9
tree9cf08ba405fc3cd8f1aad442a272bbc68120d107
parentcd24665f13ae8825aaaef3e333dda20a21e84eab
[AMDGPU] Hide "removing function" diagnostics by default

Use an `OptimizationRemark` for them even though it's not really an
optimization. It just integrates better with the other diagnostics
(enabling is easy with `-pass-remark`).

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D147703
llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.cpp
llvm/test/CodeGen/AMDGPU/remove-incompatible-functions.ll