[llvm] [Transforms][IPO] Add remarks for ArgumentPromotion and DeadArgumentE… (PR #105740)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 23 10:34:16 PDT 2024
================
@@ -139,6 +141,12 @@ doPromotion(Function *F, FunctionAnalysisManager &FAM,
} else if (I->use_empty()) {
// Dead argument (which are always marked as promotable)
++NumArgumentsDead;
+ ORE.emit([&]() {
+ return OptimizationRemark(DEBUG_TYPE, "ArgumentRemoved", F)
+ << ore::NV("Function", F) << " removing argument "
----------------
yonghong-song wrote:
Good suggestion. The second function name is not needed. Will fix.
https://github.com/llvm/llvm-project/pull/105740
More information about the llvm-commits
mailing list