[all-commits] [llvm/llvm-project] 6f9c65: [InstCombine] add tests for icmp-ne0-of-and-of-sel...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Tue Jan 31 12:01:33 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f9c650278d5b9daa11fda7c9d8f36fd593f8d5b
      https://github.com/llvm/llvm-project/commit/6f9c650278d5b9daa11fda7c9d8f36fd593f8d5b
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-31 (Tue, 31 Jan 2023)

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

  Log Message:
  -----------
  [InstCombine] add tests for icmp-ne0-of-and-of-select-of-constants; NFC


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/icmp-select.ll

  Log Message:
  -----------
  [InstCombine] reduce icmp_ne0-of-and-of-select-of-constants

Follow-up to:
D142847 / 98855059674c

This handles the 'ne' variant by inverting the result.

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


Compare: https://github.com/llvm/llvm-project/compare/acc3cc69e4d1...eb6f5f1ada6a


More information about the All-commits mailing list