[llvm] [Transforms][IPO] Add remarks for ArgumentPromotion and DeadArgumentE… (PR #105740)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 17:19:58 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 "
----------------
eddyz87 wrote:
Nitpick: function name is printed twice, first for `OptimizationRemark`, next for `NV`, is it really necessary?
https://github.com/llvm/llvm-project/pull/105740
More information about the llvm-commits
mailing list