[all-commits] [llvm/llvm-project] da5987: [MetaRenamer] Rename only unnamed instructions in ...

annamthomas via All-commits all-commits at lists.llvm.org
Tue Jul 4 08:12:23 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da598733544a4e299aebb3552a2c83f680cbd42d
  Author: Anna Thomas <anna at azul.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M llvm/lib/Transforms/Utils/MetaRenamer.cpp
    M llvm/test/Transforms/MetaRenamer/only-inst.ll

  Log Message:
  [MetaRenamer] Rename only unnamed instructions in mode renaming instructions

6f9e743b91ad6ac1f333c introduced a mode which renames only instructions in
the function. This change updates that mode to skip instructions that are already named.
This serves the original purpose of the mode (rename-only-inst) which is:
1. Modify IR without failing verifier with serially ordered number
   requirement (%1, %2, %3 required in order).
2. Give meaningful names to instructions.

More information about the All-commits mailing list