[all-commits] [llvm/llvm-project] af838c: [Coroutines] Don't run optimizations for optnone f...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Mon Feb 13 23:22:28 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af838c1b1c20c7b3b970e81039a1992857fe76bb
      https://github.com/llvm/llvm-project/commit/af838c1b1c20c7b3b970e81039a1992857fe76bb
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2023-02-14 (Tue, 14 Feb 2023)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroFrame.cpp
    M llvm/test/Transforms/Coroutines/coro-materialize.ll
    M llvm/test/Transforms/Coroutines/coro-split-sink-lifetime-01.ll

  Log Message:
  -----------
  [Coroutines] Don't run optimizations for optnone functions

Currently we will run two optimization (rematerialization and sink
lifetime markers) unconditionally even if the coroutine is marked as
optnone (O0). This looks not good. This patch disables these 2
optimizations for optnone functions. An internal change shows the change
improve the compilation time for 3% in the debug build.




More information about the All-commits mailing list