[PATCH] D121084: [NewPM][Inliner] Make inlined calls to functions in same SCC as callee exponentially expensive

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 7 07:36:45 PST 2022


nikic requested changes to this revision.
nikic added inline comments.
This revision now requires changes to proceed.


================
Comment at: llvm/lib/Transforms/IPO/Inliner.cpp:956
+                    getStringFnAttrAsInt(*CB, "function-inline-cost-multiplier")
+                        .getValueOr(1);
+                Attribute NewCBCostMult = Attribute::get(
----------------
CB has been deleted at this point -- the old cost multiplier needs to be fetched before InlineFunction is called.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121084/new/

https://reviews.llvm.org/D121084



More information about the llvm-commits mailing list