[all-commits] [llvm/llvm-project] f79d05: [TTI] Fix ScalarizationCost initialization.

Daniil Fukalov via All-commits all-commits at lists.llvm.org
Fri Apr 23 08:00:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f79d055791f938236309620d5118556cd8fcbfe2
      https://github.com/llvm/llvm-project/commit/f79d055791f938236309620d5118556cd8fcbfe2
  Author: Daniil Fukalov <daniil.fukalov at amd.com>
  Date:   2021-04-23 (Fri, 23 Apr 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h
    M llvm/test/Analysis/CostModel/X86/masked-intrinsic-cost-inseltpoison.ll
    M llvm/test/Analysis/CostModel/X86/masked-intrinsic-cost.ll

  Log Message:
  -----------
  [TTI] Fix ScalarizationCost initialization.

In cases when ScalarizationCostPassed has no value, UINT_MAX is actually used
for cost estimation in `return ScalarCalls * ScalarCost + ScalarizationCost`.

Reviewed By: sdesmalen

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




More information about the All-commits mailing list