[llvm] [AArch64] Consider histcnt smaller than i32 in the cost model (PR #108521)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 17 06:27:33 PDT 2024


================
@@ -517,25 +517,31 @@ static bool isUnpackedVectorVT(EVT VecVT) {
 static InstructionCost getHistogramCost(const IntrinsicCostAttributes &ICA) {
   Type *BucketPtrsTy = ICA.getArgTypes()[0]; // Type of vector of pointers
   Type *EltTy = ICA.getArgTypes()[1];        // Type of bucket elements
+  unsigned TotalHistCnts = 1;
 
-  // Only allow (32b and 64b) integers or pointers for now...
+  // Only allow (up to 64b) integers or pointers
----------------
SamTebbs33 wrote:

Done.

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


More information about the llvm-commits mailing list