[all-commits] [llvm/llvm-project] 0bdab9: [InstCombine] Contract x^2 + 2*x*y + y^2 to (x + y...

Christoph Stiller via All-commits all-commits at lists.llvm.org
Wed Aug 9 05:19:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0bdab96a5a391161485348ffc7cc32c915a29050
      https://github.com/llvm/llvm-project/commit/0bdab96a5a391161485348ffc7cc32c915a29050
  Author: Christoph Stiller <c.stiller at live.de>
  Date:   2023-08-09 (Wed, 09 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
    M llvm/test/Transforms/InstCombine/add.ll

  Log Message:
  -----------
  [InstCombine] Contract x^2 + 2*x*y + y^2 to (x + y)^2 (integer)

There are a number of variations on the pattern, depending on
order.

Proof: https://alive2.llvm.org/ce/z/ri5iFw

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




More information about the All-commits mailing list