[all-commits] [llvm/llvm-project] 6f9e74: [Metarenamer] Introduce option to only change inst...

annamthomas via All-commits all-commits at lists.llvm.org
Fri Jun 30 08:13:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f9e743b91ad6ac1f333ce6e3efae44e137b54bb
      https://github.com/llvm/llvm-project/commit/6f9e743b91ad6ac1f333ce6e3efae44e137b54bb
  Author: Anna Thomas <anna at azul.com>
  Date:   2023-06-30 (Fri, 30 Jun 2023)

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

  Log Message:
  -----------
  [Metarenamer] Introduce option to only change inst names

This is useful when needing to modify IR and test some optimizations on
them, while keeping BB names and function names intact. If
the IR uses ordered number naming (%1, %2, %3 etc), then we cannot just
remove or reorder specific instructions since the verifier expects the
numbers to be in order.




More information about the All-commits mailing list