[llvm] [VectorCombine][AMDGPU] Shrink demanded vector loads (PR #202501)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 02:05:48 PDT 2026
================
@@ -1779,6 +1779,14 @@ class TargetTransformInfo {
getMemIntrinsicInstrCost(const MemIntrinsicCostAttributes &MICA,
TTI::TargetCostKind CostKind) const;
+ /// Return true if replacing \p Load with the narrower load plan is profitable.
+ /// \p NewLoadTys and \p NewLoadOffsets are parallel arrays; offsets are bytes
+ /// from \p Load's pointer operand. Targets should evaluate the plan as a whole.
+ LLVM_ABI bool
+ shouldReduceLoadWidth(LoadInst *Load, ArrayRef<Type *> NewLoadTys,
+ ArrayRef<uint64_t> NewLoadOffsets,
----------------
arsenm wrote:
Not sure what use the offset is
https://github.com/llvm/llvm-project/pull/202501
More information about the llvm-commits
mailing list