[PATCH] D110100: [NFCI][CodeGen, AArch64] Fix inconsistent TargetCostKind types.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 22 08:12:52 PDT 2021


RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.

LGTM with one (optional) minor



================
Comment at: llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp:1133
   InstructionCost InterleavedCost;
   InstructionCost InstructionCost = 0;
 
----------------
Would it make sense to add a common CostKind variable here and update all the getCost calls to use that? We already do something similar in SLP.
```
TTI::TargetCostKind CostKind = TTI::TCK_SizeAndLatency;
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110100/new/

https://reviews.llvm.org/D110100



More information about the llvm-commits mailing list