[ScopBuilder] Move hoistInvariantLoads to ScopBuilder. NFC.
authorMichael Kruse <llvm@meinersbur.de>
Wed, 12 Jun 2019 04:23:05 +0000 (04:23 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Wed, 12 Jun 2019 04:23:05 +0000 (04:23 +0000)
commit549991e48c621d5cf95e4788fe13d4058a11a23c
tree937642db13983c166114b8b2d075ce096d4b3254
parent04ddf39b44659920ae0f8590464dd21a4f0530bb
[ScopBuilder] Move hoistInvariantLoads to ScopBuilder. NFC.

Refactor Scop and ScopBuilder class:

1. Move hoistInvariantLoads function from Scop to ScopBuilder class.

2. Private functions (addInvariantLoads, getNonHoistableCtx) are moved
   to public section of Scop class. hoistInvariantLoads function
   references these functions. These functions will be moved to
   ScopBuilder as well in the next steps.

Patch by Dominik Adamski <adamski.dominik@gmail.com>

Differential Revision: https://reviews.llvm.org/D62925

llvm-svn: 363121
polly/include/polly/ScopBuilder.h
polly/include/polly/ScopInfo.h
polly/lib/Analysis/ScopBuilder.cpp
polly/lib/Analysis/ScopInfo.cpp