[all-commits] [llvm/llvm-project] 8b8f2e: [MergeFunc] Fix comparison of constant expressions

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Dec 20 06:59:20 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b8f2ef06e341ef634f85fa01800f4e441cacd91
      https://github.com/llvm/llvm-project/commit/8b8f2ef06e341ef634f85fa01800f4e441cacd91
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-12-20 (Wed, 20 Dec 2023)

  Changed paths:
    M llvm/lib/Transforms/Utils/FunctionComparator.cpp
    M llvm/test/Transforms/MergeFunc/constexpr.ll

  Log Message:
  -----------
  [MergeFunc] Fix comparison of constant expressions

Functions using different constant expressions were incorrectly
merged, because a lot of state was missing from the comparison,
including the opcode, the comparison predicate, the GEP element
type, as well as the inbounds, inrange and nowrap poison flags.




More information about the All-commits mailing list