mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
fix white spaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf53c2952d
commit
36a5bf8fd8
@ -605,7 +605,7 @@ bool IndVarSimplify::runOnLoop(Loop *L, LPPassManager &LPM) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// OptimizeCanonicalIVType - If loop induction variable is always
|
/// OptimizeCanonicalIVType - If loop induction variable is always
|
||||||
/// sign or zero extended then extend the type of induction
|
/// sign or zero extended then extend the type of the induction
|
||||||
/// variable.
|
/// variable.
|
||||||
void IndVarSimplify::OptimizeCanonicalIVType(Loop *L) {
|
void IndVarSimplify::OptimizeCanonicalIVType(Loop *L) {
|
||||||
PHINode *PH = L->getCanonicalInductionVariable();
|
PHINode *PH = L->getCanonicalInductionVariable();
|
||||||
@ -622,10 +622,10 @@ void IndVarSimplify::OptimizeCanonicalIVType(Loop *L) {
|
|||||||
|
|
||||||
// Check IV uses. If all IV uses are either SEXT or ZEXT (except
|
// Check IV uses. If all IV uses are either SEXT or ZEXT (except
|
||||||
// IV increment instruction) then this IV is suitable for this
|
// IV increment instruction) then this IV is suitable for this
|
||||||
// transformstion.
|
// transformation.
|
||||||
bool isSEXT = false;
|
bool isSEXT = false;
|
||||||
BinaryOperator *Incr = NULL;
|
BinaryOperator *Incr = NULL;
|
||||||
const Type *NewType = NULL;
|
const Type *NewType = NULL;
|
||||||
for(Value::use_iterator UI = PH->use_begin(), UE = PH->use_end();
|
for(Value::use_iterator UI = PH->use_begin(), UE = PH->use_end();
|
||||||
UI != UE; ++UI) {
|
UI != UE; ++UI) {
|
||||||
const Type *CandidateType = NULL;
|
const Type *CandidateType = NULL;
|
||||||
@ -633,7 +633,7 @@ void IndVarSimplify::OptimizeCanonicalIVType(Loop *L) {
|
|||||||
CandidateType = ZI->getDestTy();
|
CandidateType = ZI->getDestTy();
|
||||||
else if (SExtInst *SI = dyn_cast<SExtInst>(UI)) {
|
else if (SExtInst *SI = dyn_cast<SExtInst>(UI)) {
|
||||||
CandidateType = SI->getDestTy();
|
CandidateType = SI->getDestTy();
|
||||||
isSEXT = true;
|
isSEXT = true;
|
||||||
}
|
}
|
||||||
else if ((Incr = dyn_cast<BinaryOperator>(UI))) {
|
else if ((Incr = dyn_cast<BinaryOperator>(UI))) {
|
||||||
// Validate IV increment instruction.
|
// Validate IV increment instruction.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user