mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Refactor Code inside LoopVectorizer's function isInductionVariable.
This patch exposes LoopVectorizer's isInductionVariable function as common a functionality. http://reviews.llvm.org/D8608 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233352 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -122,6 +122,10 @@ bool promoteLoopAccessesToScalars(AliasSet &, SmallVectorImpl<BasicBlock*> &,
|
||||
/// Updates safety information in LICMSafetyInfo argument.
|
||||
void computeLICMSafetyInfo(LICMSafetyInfo *, Loop *);
|
||||
|
||||
/// \brief Checks if the given PHINode in a loop header is an induction
|
||||
/// variable. Returns true if this is an induction PHI along with the step
|
||||
/// value.
|
||||
bool isInductionPHI(PHINode *, ScalarEvolution *, ConstantInt *&);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user