[all-commits] [llvm/llvm-project] 1817da: Preserve metadata on masked intrinsics in auto-upg...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Wed May 5 13:52:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1817dae1924144c19b9caec196f574c51d6d9957
      https://github.com/llvm/llvm-project/commit/1817dae1924144c19b9caec196f574c51d6d9957
  Author: Krzysztof Parzyszek <kparzysz at quicinc.com>
  Date:   2021-05-05 (Wed, 05 May 2021)

  Changed paths:
    M llvm/lib/IR/AutoUpgrade.cpp
    A llvm/test/Bitcode/upgrade-masked-keep-metadata.ll

  Log Message:
  -----------
  Preserve metadata on masked intrinsics in auto-upgrade

When auto-upgrade was replacing a call to a masked intrinsic, it would
not copy the metadata from the original call.

If an intrinsic had metadata, but did not need any updates, the metadata
would stay, but if an update was needed, the would end up being removed.
A similar effect could be observed with masked_expandload and
masked_compressstore, which at the moment are not handled by auto-upgrade:
the metadata remained untouched.

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




More information about the All-commits mailing list