[all-commits] [llvm/llvm-project] 902f47: [NFC] [Coroutines] Remove unnecessary check and co...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Mon Mar 21 23:27:02 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 902f4708fe1d03b0de7e5315ef875006a6adc319
      https://github.com/llvm/llvm-project/commit/902f4708fe1d03b0de7e5315ef875006a6adc319
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroSplit.cpp

  Log Message:
  -----------
  [NFC] [Coroutines] Remove unnecessary check and constraints on SmallVector

The CoroSplit pass would check the existence of coroutine intrinsic
before starting work. It is not necessary and wasteful since it would
iterate over the Module.

This patch also removes the constraint on the corresponding of the
SmallVector for the possible coroutines in the Modules. The original
value is 4. Given coroutines is used actually in practice. 4 is really
relatively a low threshold.




More information about the All-commits mailing list