[all-commits] [llvm/llvm-project] 64d4bd: [InstCombine][InstSimplify] Add baseline tests for...

Hasyimi Bahrudin via All-commits all-commits at lists.llvm.org
Wed Dec 8 05:48:16 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64d4bd02dc3f8741043806c82a87f81aff7bc8d9
      https://github.com/llvm/llvm-project/commit/64d4bd02dc3f8741043806c82a87f81aff7bc8d9
  Author: Hasyimi Bahrudin <hasyimi at gatech.edu>
  Date:   2021-12-08 (Wed, 08 Dec 2021)

  Changed paths:
    A llvm/test/Transforms/InstCombine/icmp-not-bool-constant.ll
    A llvm/test/Transforms/InstSimplify/icmp-not-bool-constant.ll

  Log Message:
  -----------
  [InstCombine][InstSimplify] Add baseline tests for icmp bool with not on LHS; NFC

See D114666 for proposed code change to instsimplify.

The difference between the CHECK result of these 2 tests
highlights missed folds in instsimplify
(e.g. (icmp eq (xor X, true), false) -> X) that are
already being handled by instcombine.

The tests are based on:
llvm/test/Transforms/InstSimplify/icmp-bool-constant.ll

Differential Revision: https://reviews.llvm.org/D115209




More information about the All-commits mailing list