[all-commits] [llvm/llvm-project] 2ea0e5: [InstCombine] simplify test for div/rem; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Tue Feb 28 11:21:39 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ea0e530d34358e77b69b5f25445edb5cf61b6f5
      https://github.com/llvm/llvm-project/commit/2ea0e530d34358e77b69b5f25445edb5cf61b6f5
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp

  Log Message:
  -----------
  [InstCombine] simplify test for div/rem; NFC

This is too conservative as noted in the TODO comment.


  Commit: a721b6b17902439e6974209119ad5f6830ed5e4c
      https://github.com/llvm/llvm-project/commit/a721b6b17902439e6974209119ad5f6830ed5e4c
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M llvm/include/llvm/IR/Instruction.h

  Log Message:
  -----------
  [IR] fix spelling/formatting; NFC

Even within this file, the usual spelling is 'Opcode',
so make it consistent.


  Commit: 542e70f96c56edbcab5278c2952caa1a3f963fe6
      https://github.com/llvm/llvm-project/commit/542e70f96c56edbcab5278c2952caa1a3f963fe6
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/addsub-constant-folding.ll

  Log Message:
  -----------
  [InstCombine] reassociate subtract-from-constant to add-constant

(C - X) + Y --> (Y - X) + C

Moving the constant operand to an 'add' gives more
flexibility to subsequent reassociation patterns,
and it may be better for codegen on targets that
don't have subtract-from-immediate instructions.


Compare: https://github.com/llvm/llvm-project/compare/8ce68969b902...542e70f96c56


More information about the All-commits mailing list