[all-commits] [llvm/llvm-project] ae3f6d: [InstCombine] Support negation of scalable-vector ...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Mon Jun 7 07:22:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae3f6de3a856006601cbca81ebf9780a2534bdcc
      https://github.com/llvm/llvm-project/commit/ae3f6de3a856006601cbca81ebf9780a2534bdcc
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2021-06-07 (Mon, 07 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/sub.ll

  Log Message:
  -----------
  [InstCombine] Support negation of scalable-vector splats

This patch is an extension of D103421. It allows the InstCombiner to
generate the negated form of integer scalable-vector splats. It can
technically handle fixed-length vectors too but those are completely
covered by the preceding logic.

This enables extra combining opportunities for scalable vector types.

Reviewed By: RKSimon

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




More information about the All-commits mailing list