[all-commits] [llvm/llvm-project] 90ffaa: [InstCombine] Add proper test coverage for or of x...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed May 8 23:16:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 90ffaa6ccc6dc7351c72979da217bd3eb7fd4491
      https://github.com/llvm/llvm-project/commit/90ffaa6ccc6dc7351c72979da217bd3eb7fd4491
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M llvm/test/Transforms/InstCombine/or-xor.ll

  Log Message:
  -----------
  [InstCombine] Add proper test coverage for or of xors pattern (NFC)

Test all commuted variants of the pattern, most of which currently
fail to fold.


  Commit: 534701d5f93369e822f3afc9670e3a42b08dfc6f
      https://github.com/llvm/llvm-project/commit/534701d5f93369e822f3afc9670e3a42b08dfc6f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/test/Transforms/InstCombine/or-xor.ll

  Log Message:
  -----------
  [InstCombine] Handle commuted variants in or of xor pattern

This pattern only handled commutation in the "or", while all
involved operations are commutative. Make sure we handle all
sixteen patterns.


Compare: https://github.com/llvm/llvm-project/compare/5adcfd4c1782...534701d5f933

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list