[all-commits] [llvm/llvm-project] e8fdd0: [InstCombine] add tests for icmp with trunc op; NFC

RotateRight via All-commits all-commits at lists.llvm.org
Tue Oct 26 14:45:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8fdd030b1c3b971286b2353f2514b3cabb3fe5a
      https://github.com/llvm/llvm-project/commit/e8fdd030b1c3b971286b2353f2514b3cabb3fe5a
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-10-26 (Tue, 26 Oct 2021)

  Changed paths:
    A llvm/test/Transforms/InstCombine/icmp-trunc.ll

  Log Message:
  -----------
  [InstCombine] add tests for icmp with trunc op; NFC


  Commit: acabad9ff6bf13e00305d9d8621ee8eafc1f8b08
      https://github.com/llvm/llvm-project/commit/acabad9ff6bf13e00305d9d8621ee8eafc1f8b08
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-10-26 (Tue, 26 Oct 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/icmp-trunc.ll
    M llvm/test/Transforms/InstCombine/signed-truncation-check.ll

  Log Message:
  -----------
  [InstCombine] try to canonicalize icmp with trunc op into mask and cmp

The motivating test is based on:
https://llvm.org/PR52260

We have better analysis for X == 0, so try harder to form that.


Compare: https://github.com/llvm/llvm-project/compare/1e6ef0cfb096...acabad9ff6bf


More information about the All-commits mailing list