mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-23 01:30:19 +00:00
Rename. s/FindIVForUser/FindIVUserForCond/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54754 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
81b06be055
commit
c677de2713
@ -177,7 +177,7 @@ private:
|
|||||||
IVStrideUse* &CondUse,
|
IVStrideUse* &CondUse,
|
||||||
const SCEVHandle* &CondStride);
|
const SCEVHandle* &CondStride);
|
||||||
void OptimizeIndvars(Loop *L);
|
void OptimizeIndvars(Loop *L);
|
||||||
bool FindIVForUser(ICmpInst *Cond, IVStrideUse *&CondUse,
|
bool FindIVUserForCond(ICmpInst *Cond, IVStrideUse *&CondUse,
|
||||||
const SCEVHandle *&CondStride);
|
const SCEVHandle *&CondStride);
|
||||||
bool RequiresTypeConversion(const Type *Ty, const Type *NewTy);
|
bool RequiresTypeConversion(const Type *Ty, const Type *NewTy);
|
||||||
unsigned CheckForIVReuse(bool, bool, const SCEVHandle&,
|
unsigned CheckForIVReuse(bool, bool, const SCEVHandle&,
|
||||||
@ -1453,10 +1453,10 @@ void LoopStrengthReduce::StrengthReduceStridedIVUsers(const SCEVHandle &Stride,
|
|||||||
// different starting values, into different PHIs.
|
// different starting values, into different PHIs.
|
||||||
}
|
}
|
||||||
|
|
||||||
/// FindIVForUser - If Cond has an operand that is an expression of an IV,
|
/// FindIVUserForCond - If Cond has an operand that is an expression of an IV,
|
||||||
/// set the IV user and stride information and return true, otherwise return
|
/// set the IV user and stride information and return true, otherwise return
|
||||||
/// false.
|
/// false.
|
||||||
bool LoopStrengthReduce::FindIVForUser(ICmpInst *Cond, IVStrideUse *&CondUse,
|
bool LoopStrengthReduce::FindIVUserForCond(ICmpInst *Cond, IVStrideUse *&CondUse,
|
||||||
const SCEVHandle *&CondStride) {
|
const SCEVHandle *&CondStride) {
|
||||||
for (unsigned Stride = 0, e = StrideOrder.size(); Stride != e && !CondUse;
|
for (unsigned Stride = 0, e = StrideOrder.size(); Stride != e && !CondUse;
|
||||||
++Stride) {
|
++Stride) {
|
||||||
@ -1713,7 +1713,7 @@ void LoopStrengthReduce::OptimizeIndvars(Loop *L) {
|
|||||||
IVStrideUse *CondUse = 0;
|
IVStrideUse *CondUse = 0;
|
||||||
const SCEVHandle *CondStride = 0;
|
const SCEVHandle *CondStride = 0;
|
||||||
|
|
||||||
if (!FindIVForUser(Cond, CondUse, CondStride))
|
if (!FindIVUserForCond(Cond, CondUse, CondStride))
|
||||||
return; // setcc doesn't use the IV.
|
return; // setcc doesn't use the IV.
|
||||||
|
|
||||||
// If possible, change stride and operands of the compare instruction to
|
// If possible, change stride and operands of the compare instruction to
|
||||||
|
Loading…
Reference in New Issue
Block a user