Reland: [Attributor] Split the Attributor::run() into multiple functions.
authorKuter Dinel <kuterdinel@gmail.com>
Wed, 10 Jun 2020 13:08:56 +0000 (13:08 +0000)
committersstefan1 <sstipanovic@s-energize.com>
Wed, 10 Jun 2020 13:21:22 +0000 (13:21 +0000)
commit70330edc4d1083c14edac160e703a4b5c4edb25e
tree7aadafb6fc069f39b6dcf566626fb634f0f8689f
parent60f5b0ec7ce27e079513fdaa396acac30ab27bf2
Reland: [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