[all-commits] [llvm/llvm-project] 35de51: [x86] add tests for setcc eq/ne 0/-1 of rotate; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Sun Feb 27 08:36:09 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35de5125cc2b61088efa7d3358255955a29beb73
      https://github.com/llvm/llvm-project/commit/35de5125cc2b61088efa7d3358255955a29beb73
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-02-27 (Sun, 27 Feb 2022)

  Changed paths:
    A llvm/test/CodeGen/X86/setcc-fsh.ll

  Log Message:
  -----------
  [x86] add tests for setcc eq/ne 0/-1 of rotate; NFC

The tests are adapted from a similar file for instcombine:
fd807601a78


  Commit: 69684b84c61c39f643d09d617c5af3ba5f7a30c4
      https://github.com/llvm/llvm-project/commit/69684b84c61c39f643d09d617c5af3ba5f7a30c4
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-02-27 (Sun, 27 Feb 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/test/CodeGen/X86/setcc-fsh.ll

  Log Message:
  -----------
  [SDAG] fold (rotate X) eq/ne (0/-1)

This is the SDAG equivalent of an instcombine transform added with:
fd807601a78

This is another step towards solving #49541 and part of an alternative
set of more general transforms than what is proposed in D111530.

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


Compare: https://github.com/llvm/llvm-project/compare/2b46417aa2d4...69684b84c61c


More information about the All-commits mailing list