[PATCH] D157628: [AArch64][SVE2] Change the cost of extends with S/URHADD to 0
Dinar Temirbulatov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 11 06:35:48 PDT 2023
dtemirbulatov added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:2105
+ auto *Trunc = cast<Instruction>(*LShr->user_begin());
+ if (Trunc->getOpcode() != Instruction::Trunc ||
+ Src->getScalarSizeInBits() !=
----------------
dtemirbulatov wrote:
> Check for Trunc->hasOneUser() here as well?
oh, Trunc here is a final instruction in the sequence, so no need to check for hasOneUser().
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157628/new/
https://reviews.llvm.org/D157628
More information about the llvm-commits
mailing list