[NFC intended] Refactor SinkAndHoistLICMFlags to allow others to construct without...
authorJamie Schmeiser <schmeise@ca.ibm.com>
Thu, 12 Nov 2020 15:06:53 +0000 (15:06 +0000)
committerAnh Tuyen Tran <anhtuyen@ca.ibm.com>
Thu, 12 Nov 2020 15:06:59 +0000 (15:06 +0000)
commitf79b483385ce82d6635935a8035825f499d31c1b
tree96770b9e4e2e96decbc96f7bab8473141b51d41b
parentba906eb16cdf76a72321a28c8a85529ce5801880
[NFC intended] Refactor SinkAndHoistLICMFlags to allow others to construct without exposing internals

Summary:
Refactor SinkAdHoistLICMFlags from a struct to a class with accessors and constructors to allow other
classes to construct flags with meaningful defaults while not exposing LICM internal details.

Author: Jamie Schmeiser <schmeise@ca.ibm.com>

Reviewed By: asbirlea (Alina Sbirlea)

Differential Revision: https://reviews.llvm.org/D90482
llvm/include/llvm/Transforms/Utils/LoopUtils.h
llvm/lib/Transforms/Scalar/LICM.cpp