[all-commits] [llvm/llvm-project] dfec0b: [FuncSpec] Save compilation time by caching uses f...

bincheng-github via All-commits all-commits at lists.llvm.org
Tue Feb 15 18:46:56 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dfec0b3053b9d433fa3770ff31bc540406db4ba8
      https://github.com/llvm/llvm-project/commit/dfec0b3053b9d433fa3770ff31bc540406db4ba8
  Author: Bin Cheng <bin.cheng at linux.alibaba.com>
  Date:   2022-02-16 (Wed, 16 Feb 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/FunctionSpecialization.cpp

  Log Message:
  -----------
  [FuncSpec] Save compilation time by caching uses for propagation

We only need to do propagation on use instructions of the original
value, rather than the replacing const value which might have lots
of irrelavant uses.  This is done by caching uses before replacing.

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




More information about the All-commits mailing list