[all-commits] [llvm/llvm-project] a71d66: [InstCombine] Precommit tests for D101807 (NFC)

Juneyoung Lee via All-commits all-commits at lists.llvm.org
Tue May 4 21:45:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a71d666d189ed3b176b20c361604c7ec30d25621
      https://github.com/llvm/llvm-project/commit/a71d666d189ed3b176b20c361604c7ec30d25621
  Author: Juneyoung Lee <aqjune at gmail.com>
  Date:   2021-05-05 (Wed, 05 May 2021)

  Changed paths:
    M llvm/test/Transforms/InstCombine/select-safe-transforms.ll

  Log Message:
  -----------
  [InstCombine] Precommit tests for D101807 (NFC)


  Commit: 1fef5c88a69e0ede57e3867af72ac769dd11add1
      https://github.com/llvm/llvm-project/commit/1fef5c88a69e0ede57e3867af72ac769dd11add1
  Author: Juneyoung Lee <aqjune at gmail.com>
  Date:   2021-05-05 (Wed, 05 May 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select-safe-transforms.ll

  Log Message:
  -----------
  [InstCombine] Fold more select of selects using isImpliedCondition

This is a simple folding that does these:

```
select x_inv, true, (select y, x, false)
=>
select x_inv, true, y
```
https://alive2.llvm.org/ce/z/-STJ2d

```
select (select y, x, false), true, x_inv
=>
select y, true, x_inv
```
https://alive2.llvm.org/ce/z/6ruYt6

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D101807


Compare: https://github.com/llvm/llvm-project/compare/6ffc41b014f3...1fef5c88a69e


More information about the All-commits mailing list