[llvm] [AArch64][TTI] Fix extract cost for scalar fmul users (PR #212739)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 05:48:43 PDT 2026
================
@@ -4433,7 +4433,9 @@ InstructionCost AArch64TTIImpl::getVectorInstrCostHelper(
if (Scalar) {
DenseMap<User *, unsigned> UserToExtractIdx;
- for (auto *U : Scalar->users()) {
+ for (auto &[S, U, L] : ScalarUserAndIdx) {
+ if (S != Scalar)
+ continue;
if (!IsUserFMulScalarTy(U))
----------------
alexey-bataev wrote:
```suggestion
if (!U || !IsUserFMulScalarTy(U))
```
https://github.com/llvm/llvm-project/pull/212739
More information about the llvm-commits
mailing list