[all-commits] [llvm/llvm-project] 953cdc: [InstCombine] early exit to reduce indents in fold...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Mon Jan 2 10:49:09 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 953cdcb98956078d49c335cd57bf78af0d81dd01
      https://github.com/llvm/llvm-project/commit/953cdcb98956078d49c335cd57bf78af0d81dd01
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-02 (Mon, 02 Jan 2023)

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

  Log Message:
  -----------
  [InstCombine] early exit to reduce indents in foldSelectIntoOp(); NFC


  Commit: 871c415f2d8a25851929922bf6a82ba0a660a69f
      https://github.com/llvm/llvm-project/commit/871c415f2d8a25851929922bf6a82ba0a660a69f
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-02 (Mon, 02 Jan 2023)

  Changed paths:
    M llvm/test/Transforms/InstCombine/binop-cast.ll

  Log Message:
  -----------
  [InstCombine] add tests for not-sext-bool+mask; NFC


  Commit: cb9569049c24e513afe215d5ac3b3dbc79dacf43
      https://github.com/llvm/llvm-project/commit/cb9569049c24e513afe215d5ac3b3dbc79dacf43
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-02 (Mon, 02 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/test/Transforms/InstCombine/binop-cast.ll

  Log Message:
  -----------
  [InstCombine] fold mask with not-of-sext-bool to select

~sext(A) & Op1 --> A ? 0 : Op1

With no extra uses, this pattern is already reduced,
but we would miss it in examples such as issue #59773.

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


Compare: https://github.com/llvm/llvm-project/compare/cf58063a4069...cb9569049c24


More information about the All-commits mailing list