[all-commits] [llvm/llvm-project] f44ba2: ExtractValue instruction costs

sjoerdmeijer via All-commits all-commits at lists.llvm.org
Tue Dec 1 02:43:11 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f44ba251354f98d771cd0a4268db94db4315945b
      https://github.com/llvm/llvm-project/commit/f44ba251354f98d771cd0a4268db94db4315945b
  Author: Sjoerd Meijer <sjoerd.meijer at arm.com>
  Date:   2020-12-01 (Tue, 01 Dec 2020)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/extractvalue-no-scalarization-required.ll

  Log Message:
  -----------
  ExtractValue instruction costs

Instruction ExtractValue wasn't handled in
LoopVectorizationCostModel::getInstructionCost(). As a result, it was modeled
as a mul which is not really accurate. Since it is free (most of the times),
this now gets a cost of 0 using getInstructionCost.

This is a follow-up of D92208, that required changing this regression test.
In a follow up I will look at InsertValue which also isn't handled yet.

Differential Revision: https://reviews.llvm.org/D92317




More information about the All-commits mailing list