[all-commits] [llvm/llvm-project] e25f22: [InstCombine] Add test coverage for (icmp slt/sge ...

Craig Topper via All-commits all-commits at lists.llvm.org
Sat Jan 14 00:31:47 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e25f2287dd7d6854b0bbfb9878fecdbbad21038d
      https://github.com/llvm/llvm-project/commit/e25f2287dd7d6854b0bbfb9878fecdbbad21038d
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-01-14 (Sat, 14 Jan 2023)

  Changed paths:
    M llvm/test/Transforms/InstCombine/icmp.ll

  Log Message:
  -----------
  [InstCombine] Add test coverage for (icmp slt/sge (1 << Y), 0). NFC

We already optimize the slt case to (icmp eq Y, BitWidth-1), but
we miss optimizing sge because it canonicalizes to (icmp sgt (1 << X), 1)
first.




More information about the All-commits mailing list