[all-commits] [llvm/llvm-project] ac4c46: [InstCombine] add tests for increment-of-ashr; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Mon Aug 29 05:50:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac4c46d24bb9b12f289b8cc2c2be24800e4e71dd
      https://github.com/llvm/llvm-project/commit/ac4c46d24bb9b12f289b8cc2c2be24800e4e71dd
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-08-29 (Mon, 29 Aug 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/add.ll

  Log Message:
  -----------
  [InstCombine] add tests for increment-of-ashr; NFC


  Commit: 246078604c871d43394407db7f9f953494f45570
      https://github.com/llvm/llvm-project/commit/246078604c871d43394407db7f9f953494f45570
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-08-29 (Mon, 29 Aug 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/add.ll
    M llvm/test/Transforms/InstCombine/high-bit-signmask.ll

  Log Message:
  -----------
  [InstCombine] fold inc-of-signbit-splat to not+lshr

(iN X s>> (N - 1)) + 1 --> (~X) u>> (N - 1)

https://alive2.llvm.org/ce/z/wzS474


Compare: https://github.com/llvm/llvm-project/compare/4a1b119658aa...246078604c87


More information about the All-commits mailing list