[PATCH] D132968: [TTI] Account for FMA opportunities in getArithmeticInstrCost.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 31 08:40:28 PDT 2022
fhahn marked 2 inline comments as done.
fhahn added inline comments.
================
Comment at: llvm/lib/Analysis/TargetTransformInfo.cpp:800
+ }))
+ return 0;
+
----------------
ABataev wrote:
> Use TTI::TCC_Free
Fixed, thanks!
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:6466
+ if (VecCost == 0) {
+ // The vector instruction is considered free so it can likely be folded
----------------
ABataev wrote:
> `== TTI::TCC_Free`
Fixed, thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132968/new/
https://reviews.llvm.org/D132968
More information about the llvm-commits
mailing list