[all-commits] [llvm/llvm-project] 01089c: [InstCombine] Preserve !annotation on newly create...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Dec 17 07:26:03 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 01089c876bff43a7cde1cb9b1ef8c128169ec5b4
      https://github.com/llvm/llvm-project/commit/01089c876bff43a7cde1cb9b1ef8c128169ec5b4
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-12-17 (Thu, 17 Dec 2020)

  Changed paths:
    M clang/test/CodeGenCXX/auto-var-init.cpp
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/annotations.ll

  Log Message:
  -----------
  [InstCombine] Preserve !annotation on newly created instructions.

If the source instruction has !annotation metadata, all instructions
created during combining should also have it. Tell the builder to
add it.

The !annotation system was discussed on llvm-dev as part of
'RFC: Combining Annotation Metadata and Remarks'
(http://lists.llvm.org/pipermail/llvm-dev/2020-November/146393.html)

This patch is based on an earlier patch by Francis Visoiu Mistrih.

Reviewed By: thegameg, lebedev.ri

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




More information about the All-commits mailing list