[all-commits] [llvm/llvm-project] 0cf5d4: [InstCombine] add tests for masked sub; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Fri Jul 8 07:11:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0cf5d40d4c77dd2e21429a099edb4319bf240cc9
      https://github.com/llvm/llvm-project/commit/0cf5d40d4c77dd2e21429a099edb4319bf240cc9
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-07-08 (Fri, 08 Jul 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/sub-xor.ll

  Log Message:
  -----------
  [InstCombine] add tests for masked sub; NFC


  Commit: 79bb915fb60b2cd220d89e3bb54f67abb8cdb7bd
      https://github.com/llvm/llvm-project/commit/79bb915fb60b2cd220d89e3bb54f67abb8cdb7bd
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-07-08 (Fri, 08 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/sub-xor.ll

  Log Message:
  -----------
  [InstCombine] enhance fold for subtract-from-constant -> xor

A low-bit mask is not required:
https://alive2.llvm.org/ce/z/yPShss

This matches the SDAG implementation that was updated at:
8b756713140f


Compare: https://github.com/llvm/llvm-project/compare/015834e45581...79bb915fb60b


More information about the All-commits mailing list