[all-commits] [llvm/llvm-project] a32389: [IR] Fix nested constant to instruction conversion...

Wenju He via All-commits all-commits at lists.llvm.org
Fri Oct 20 03:21:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a3238969e562191c1a5a974bc3460154d23bd87d
      https://github.com/llvm/llvm-project/commit/a3238969e562191c1a5a974bc3460154d23bd87d
  Author: Wenju He <wenju.he at intel.com>
  Date:   2023-10-20 (Fri, 20 Oct 2023)

  Changed paths:
    M llvm/lib/IR/ReplaceConstant.cpp
    M llvm/test/Transforms/LowerTypeTests/function-weak.ll

  Log Message:
  -----------
  [IR] Fix nested constant to instruction conversion (#69682)

Fix two issues:
* If a constant is used in another constant, we need to insert newly
  created instructions to worklist so that constant used in them will
  be converted.
* Set debug info of original instruction to newly created instructions.




More information about the All-commits mailing list