[all-commits] [llvm/llvm-project] 226778: [GlobalOpt] Extend logic in SRA heuristic to skip ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Mar 7 02:08:24 PST 2023


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

  Changed paths:
    M llvm/lib/Transforms/IPO/GlobalOpt.cpp
    M llvm/test/Transforms/GlobalOpt/sra-many-stores-initializers.ll

  Log Message:
  -----------
  [GlobalOpt] Extend logic in SRA heuristic to skip stores of initializer.

If all stores only store the initializer value of a global, consider it
as not stored in the heuristic. GlobalOpt will remove such stores later
on.

Depends on D129857.

Reviewed By: nikic

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




More information about the All-commits mailing list