[all-commits] [llvm/llvm-project] daae92: [InstSimplify] Clean up SimplifyReplacedWithOp imp...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Mar 21 07:38:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: daae927f9c130000c914a27dd1392599190d470f
      https://github.com/llvm/llvm-project/commit/daae927f9c130000c914a27dd1392599190d470f
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-03-21 (Sun, 21 Mar 2021)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp

  Log Message:
  -----------
  [InstSimplify] Clean up SimplifyReplacedWithOp implementation (NFCI)

Replace Op with RepOp up-front, and then always work with the new
operands, rather than checking for replacement in various places.


  Commit: ece1403acadadf0b101bc68a8c69c613ca4f816f
      https://github.com/llvm/llvm-project/commit/ece1403acadadf0b101bc68a8c69c613ca4f816f
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-03-21 (Sun, 21 Mar 2021)

  Changed paths:
    M llvm/test/Transforms/InstSimplify/select.ll

  Log Message:
  -----------
  [InstSimplify] Add additional select operand replacement tests (NFC)

This tests for binops with identity elements.


Compare: https://github.com/llvm/llvm-project/compare/1098acd46d47...ece1403acada


More information about the All-commits mailing list