[all-commits] [llvm/llvm-project] 4272e6: [LV] Change interface of getReductionPatternCost t...

David Green via All-commits all-commits at lists.llvm.org
Tue Jul 20 08:45:11 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4272e64acd6cc1abfae45ab3458915f52bd3c4e9
      https://github.com/llvm/llvm-project/commit/4272e64acd6cc1abfae45ab3458915f52bd3c4e9
  Author: David Green <david.green at arm.com>
  Date:   2021-07-20 (Tue, 20 Jul 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  -----------
  [LV] Change interface of getReductionPatternCost to return Optional

Currently the Instruction cost of getReductionPatternCost returns an
Invalid cost to specify "did not find the pattern". This changes that to
return an Optional with None specifying not found, allowing Invalid to
mean an infinite cost as is used elsewhere.

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




More information about the All-commits mailing list