[all-commits] [llvm/llvm-project] 4d7112: [InstCombine] Add zext nneg test variant for gep o...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Dec 21 07:38:27 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d7112435e31dafb5854f69c516373e4548bd0a3
      https://github.com/llvm/llvm-project/commit/4d7112435e31dafb5854f69c516373e4548bd0a3
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-12-21 (Thu, 21 Dec 2023)

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

  Log Message:
  -----------
  [InstCombine] Add zext nneg test variant for gep of sext add fold (NFC)


  Commit: b8df88b41c8a1b4e879b4fd34be3522c9b45e86f
      https://github.com/llvm/llvm-project/commit/b8df88b41c8a1b4e879b4fd34be3522c9b45e86f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-12-21 (Thu, 21 Dec 2023)

  Changed paths:
    M llvm/include/llvm/IR/PatternMatch.h
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/array.ll

  Log Message:
  -----------
  [InstCombine] Support zext nneg in gep of sext add fold

Add m_NNegZext() and m_SExtLike() matchers to make doing these kinds
of changes simpler in the future.


Compare: https://github.com/llvm/llvm-project/compare/8fdfd34cd2ad...b8df88b41c8a


More information about the All-commits mailing list