[all-commits] [llvm/llvm-project] eba09a: [InstCombine] Preserve !annotation for newly creat...

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


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/annotations.ll

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

When replacing an instruction with !annotation with a newly created
replacement, add the !annotation metadata to the replacement.

This mostly covers cases where the new instructions are created using
the ::Create helpers. Instructions created by IRBuilder will be handled
by D91444.

Reviewed By: thegameg

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




More information about the All-commits mailing list