[all-commits] [llvm/llvm-project] d4a400: [InstCombine] add tests for add of select with 0 a...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Tue Sep 6 09:20:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d4a4004c0f9d3070e6c192b9a5bc260bee62e8a8
      https://github.com/llvm/llvm-project/commit/d4a4004c0f9d3070e6c192b9a5bc260bee62e8a8
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-09-06 (Tue, 06 Sep 2022)

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

  Log Message:
  -----------
  [InstCombine] add tests for add of select with 0 and negate arms; NFC


  Commit: e028121ed0fefe0693cdc7ff59aabba931519170
      https://github.com/llvm/llvm-project/commit/e028121ed0fefe0693cdc7ff59aabba931519170
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-09-06 (Tue, 06 Sep 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll
    M llvm/test/Transforms/InstCombine/add.ll

  Log Message:
  -----------
  [InstCombine] add/move tests for add with select operands that simplify; NFC


  Commit: ae117e1c1ba68da48c70f5cd8cb3c666fbdd1b77
      https://github.com/llvm/llvm-project/commit/ae117e1c1ba68da48c70f5cd8cb3c666fbdd1b77
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-09-06 (Tue, 06 Sep 2022)

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

  Log Message:
  -----------
  [InstCombine] remove dead code for add (select cond, (sub), 0); NFC

This pattern is handled more generally in SimplifySelectsFeedingBinaryOp().
Tests to confirm that added to the add.ll test file in the previous commit.


Compare: https://github.com/llvm/llvm-project/compare/0b1160fdebf1...ae117e1c1ba6


More information about the All-commits mailing list