[Attributor] Split the Attributor::run() into multiple functions.
authorstefan <stefomeister@gmail.com>
Wed, 10 Jun 2020 09:48:58 +0000 (09:48 +0000)
committerstefan <stefomeister@gmail.com>
Wed, 10 Jun 2020 09:48:58 +0000 (09:48 +0000)
commit0ee47cc92f510e4f21b584dc265105f4d51776a0
treeca0189e974779fad5a46b45947a9a24ac69dbf56
parent4666953ce229cd7a8b042e5f80ecc97b4eae3636
[Attributor] Split the Attributor::run() into multiple functions.

Summary:
This patch splits the Attributor::run() function into multiple functions.

Simple Logic changes to make this possible:
  # Moved iteration count verification earlier.
  # NumFinalAAs get set a little bit later.

Reviewers: jdoerfert, sstefan1, uenoku

Reviewed By: jdoerfert

Subscribers: hiraditya, uenoku, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81022
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp