[PATCH] D101228: [InlineCost] CallAnalyzer: use TTI info for extractvalue - they are free (PR50099)
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 24 03:59:59 PDT 2021
xbolva00 added inline comments.
================
Comment at: llvm/lib/Analysis/InlineCost.cpp:1773
+ // Usually `extractvalue` is modelled as free.
+ if (TTI.getUserCost(&I, TargetTransformInfo::TCK_SizeAndLatency) ==
+ TargetTransformInfo::TCC_Free)
----------------
Just question: this check is also in visitInstruction so maybe you can just return visitInstruction(I)?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101228/new/
https://reviews.llvm.org/D101228
More information about the llvm-commits
mailing list