[llvm] [AArch64] Allow cost-free cast absorption into widening instructions with multiple users (PR #210460)

David Green via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 20 01:41:30 PDT 2026


================
@@ -3562,6 +3562,52 @@ bool AArch64TTIImpl::isExtPartOfAvgExpr(const Instruction *ExtUser, Type *Dst,
   return false;
 }
 
+std::optional<InstructionCost> AArch64TTIImpl::getUserAbsorbedCastCost(
----------------
davemgreen wrote:

Could this be a lambda, to keep it next to the code that uses it?

https://github.com/llvm/llvm-project/pull/210460


More information about the llvm-commits mailing list