[all-commits] [llvm/llvm-project] 14ae0c: [Cost]Canonicalize the cost for logical or/and red...

cilkplus via All-commits all-commits at lists.llvm.org
Fri Mar 19 11:02:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14ae0cf0f5cde5a5e64b955dfda5b5af3e882cdb
      https://github.com/llvm/llvm-project/commit/14ae0cf0f5cde5a5e64b955dfda5b5af3e882cdb
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-03-19 (Fri, 19 Mar 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h
    M llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/AArch64/reduce-and.ll
    M llvm/test/Analysis/CostModel/AArch64/reduce-or.ll
    M llvm/test/Analysis/CostModel/AMDGPU/reduce-and.ll
    M llvm/test/Analysis/CostModel/AMDGPU/reduce-or.ll
    M llvm/test/Analysis/CostModel/ARM/reduce-and.ll
    M llvm/test/Analysis/CostModel/ARM/reduce-or.ll
    M llvm/test/Analysis/CostModel/PowerPC/reduce-and.ll
    M llvm/test/Analysis/CostModel/PowerPC/reduce-or.ll
    M llvm/test/Analysis/CostModel/RISCV/reduce-and.ll
    M llvm/test/Analysis/CostModel/RISCV/reduce-or.ll
    M llvm/test/Analysis/CostModel/SystemZ/reduce-and.ll
    M llvm/test/Analysis/CostModel/SystemZ/reduce-or.ll

  Log Message:
  -----------
  [Cost]Canonicalize the cost for logical or/and reductions.

The generic cost of logical or/and reductions should be cost of bitcast
<ReduxWidth x i1> to iReduxWidth + cmp eq|ne iReduxWidth.

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




More information about the All-commits mailing list