[Attributor] Add an option to increase the max number of iterations
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 16 Jun 2021 19:37:22 +0000 (15:37 -0400)
committerHuber, Joseph <huberjn@ornl.gov>
Tue, 22 Jun 2021 18:38:25 +0000 (14:38 -0400)
commitb54ccab5096dc186fbc8343e1af75b5ccb09821b
tree6664eedc3b0e36dcca90e98dc640fdfc5c7de983
parent8d84751ac488ad11e0964704e9ea5366731355f7
[Attributor] Add an option to increase the max number of iterations

Right now the Attributor defaults to 32 fixed point iterations unless it is set
explicitly by a command line flag. This patch allows this to be configured when
the attributor instance is created. The maximum is then increased in OpenMPOpt
if the target is a kernel. This is because the globalization analysis can result
in larger iteration counts due to many dependent instances running at once.

Depends on D102444

Reviewed By: jdoerfert

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