[PATCH] D132968: [TTI] Account for FMA opportunities in getArithmeticInstrCost.
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 30 13:15:10 PDT 2022
ABataev added inline comments.
================
Comment at: llvm/lib/Analysis/TargetTransformInfo.cpp:800
+ }))
+ return 0;
+
----------------
Use TTI::TCC_Free
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:6466
+ if (VecCost == 0) {
+ // The vector instruction is considered free so it can likely be folded
----------------
`== TTI::TCC_Free`
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