[all-commits] [llvm/llvm-project] 60a88d: [InstCombine] Fix select + cast fold with constant...

Sean Fertile via All-commits all-commits at lists.llvm.org
Tue Aug 22 00:07:51 PDT 2023


  Branch: refs/heads/release/17.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 60a88d4bab72b7c7c5634d58e0b6c08c398991de
      https://github.com/llvm/llvm-project/commit/60a88d4bab72b7c7c5634d58e0b6c08c398991de
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-08-22 (Tue, 22 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/binop-select-cast-of-select-cond.ll

  Log Message:
  -----------
  [InstCombine] Fix select + cast fold with constant expression (PR64669)

The zext constant expression was detected by the fold, but then
handled as a sext. Use ZExtOperator instead of ZExtInst to handle
constant expressions.

Fixes https://github.com/llvm/llvm-project/issues/64669.

(cherry picked from commit c15ccfb24afa67d3c3f54e52cc1d1afa564715ed)


  Commit: 28874feff022b096fcbb403699666517cf7de713
      https://github.com/llvm/llvm-project/commit/28874feff022b096fcbb403699666517cf7de713
  Author: Sean Fertile <sd.fertile at gmail.com>
  Date:   2023-08-22 (Tue, 22 Aug 2023)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
    R llvm/test/CodeGen/PowerPC/aix-toc-data-offset.ll

  Log Message:
  -----------
  Revert "[PPC][AIX] Fix toc-data peephole bug and some related cleanup."

This reverts commit b37c7ed0c95c7f24758b1532f04275b4bb65d3c1.

(cherry picked from commit ce658829c9ebd23066f4f0aa5dc686350e5f9ba4)


  Commit: 5bd2c0c745d4cec0efa15827d80cfb33e453d325
      https://github.com/llvm/llvm-project/commit/5bd2c0c745d4cec0efa15827d80cfb33e453d325
  Author: Sean Fertile <sd.fertile at gmail.com>
  Date:   2023-08-22 (Tue, 22 Aug 2023)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
    M llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
    M llvm/test/CodeGen/PowerPC/toc-data-const.ll
    R llvm/test/CodeGen/PowerPC/toc-data-peephole-aligment.ll
    M llvm/test/CodeGen/PowerPC/toc-data.ll

  Log Message:
  -----------
  Revert "[XCOFF][AIX] Peephole optimization for toc-data."

This reverts commit 5e28d30f1fb10faf2db2f8bf0502e7fd72e6ac2e.

(cherry picked from commit cef56b9318e37e9c47fd356c76c9da522bc8c122)


Compare: https://github.com/llvm/llvm-project/compare/1991da9a837d...5bd2c0c745d4


More information about the All-commits mailing list