[all-commits] [llvm/llvm-project] ac522f: [DAGCombiner] Fold (sext (not i1 x)) -> (add (zext...

laytonio via All-commits all-commits at lists.llvm.org
Sun Dec 6 08:55:14 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ac522f87002ffc20d377e284080c9fa7f63216fc
      https://github.com/llvm/llvm-project/commit/ac522f87002ffc20d377e284080c9fa7f63216fc
  Author: Layton Kifer <laytonkifer at gmail.com>
  Date:   2020-12-06 (Sun, 06 Dec 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/select_const.ll
    M llvm/test/CodeGen/ARM/select_const.ll
    M llvm/test/CodeGen/PowerPC/select_const.ll
    M llvm/test/CodeGen/RISCV/sext-zext-trunc.ll
    M llvm/test/CodeGen/SystemZ/sext-zext.ll
    M llvm/test/CodeGen/X86/pr44140.ll

  Log Message:
  -----------
  [DAGCombiner] Fold (sext (not i1 x)) -> (add (zext i1 x), -1)

Move fold of (sext (not i1 x)) -> (add (zext i1 x), -1) from X86 to DAGCombiner to improve codegen on other targets.

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




More information about the All-commits mailing list