mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Change else if => if after return, after r203265
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203347 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
783b2222f8
commit
f911d52a2c
@ -163,20 +163,21 @@ unsigned ARMTTI::getIntImmCost(const APInt &Imm, Type *Ty) const {
|
||||
(ARM_AM::getSOImmVal(~ZImmVal) != -1))
|
||||
return 1;
|
||||
return ST->hasV6T2Ops() ? 2 : 3;
|
||||
} else if (ST->isThumb2()) {
|
||||
}
|
||||
if (ST->isThumb2()) {
|
||||
if ((SImmVal >= 0 && SImmVal < 65536) ||
|
||||
(ARM_AM::getT2SOImmVal(ZImmVal) != -1) ||
|
||||
(ARM_AM::getT2SOImmVal(~ZImmVal) != -1))
|
||||
return 1;
|
||||
return ST->hasV6T2Ops() ? 2 : 3;
|
||||
} else /*Thumb1*/ {
|
||||
if (SImmVal >= 0 && SImmVal < 256)
|
||||
return 1;
|
||||
if ((~ZImmVal < 256) || ARM_AM::isThumbImmShiftedVal(ZImmVal))
|
||||
return 2;
|
||||
// Load from constantpool.
|
||||
return 3;
|
||||
}
|
||||
// Thumb1.
|
||||
if (SImmVal >= 0 && SImmVal < 256)
|
||||
return 1;
|
||||
if ((~ZImmVal < 256) || ARM_AM::isThumbImmShiftedVal(ZImmVal))
|
||||
return 2;
|
||||
// Load from constantpool.
|
||||
return 3;
|
||||
}
|
||||
|
||||
unsigned ARMTTI::getCastInstrCost(unsigned Opcode, Type *Dst,
|
||||
|
Loading…
Reference in New Issue
Block a user