[all-commits] [llvm/llvm-project] 8325d4: [MergeFuncs] Compare load instruction metadata

X via All-commits all-commits at lists.llvm.org
Tue Mar 21 01:49:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8325d46a4ab803c6eeff28bf1bdafb43287ce557
      https://github.com/llvm/llvm-project/commit/8325d46a4ab803c6eeff28bf1bdafb43287ce557
  Author: Ding Xiang Fei <dingxiangfei2009 at protonmail.ch>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/FunctionComparator.h
    M llvm/lib/Transforms/Utils/FunctionComparator.cpp

  Log Message:
  -----------
  [MergeFuncs] Compare load instruction metadata

MergeFuncs currently merges load instructions with differing
semantically-relevant metadata, e.g. a load that has !nonnull
with one that does not.

Update FunctionComparator to make sure that metadata of both
loads is the same. Alternatively, it would be possilbe to ignore
the metadata during comparison, and then drop it during merging.

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




More information about the All-commits mailing list