[all-commits] [llvm/llvm-project] d94e84: [GlobalOpt] Extend CleanupPointerRootUsers to hand...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Mar 2 01:13:12 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d94e8479fcd7cd57fa9c6f3f3aa24d2ad3e11d89
      https://github.com/llvm/llvm-project/commit/d94e8479fcd7cd57fa9c6f3f3aa24d2ad3e11d89
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-03-02 (Thu, 02 Mar 2023)

  Changed paths:
    M llvm/lib/Transforms/IPO/GlobalOpt.cpp
    M llvm/test/ThinLTO/X86/import-constant.ll
    M llvm/test/Transforms/GlobalOpt/cleanup-pointer-root-users-gep-constexpr.ll
    A llvm/test/Transforms/GlobalOpt/cleanup-pointer-root-users-ptrtoint-add-constexpr.ll

  Log Message:
  -----------
  [GlobalOpt] Extend CleanupPointerRootUsers to handle CE users.

Extend CleanupPointerRootUsers to iterate over a worklist, add users of
constant expressions to the worklist to enable additional cleanups.

Reviewed By: nikic

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




More information about the All-commits mailing list