mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Tidy up a bit. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178915 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2da70d1792
commit
03fceff6f6
@ -74,8 +74,10 @@ namespace {
|
|||||||
return *getFpValPtr();
|
return *getFpValPtr();
|
||||||
}
|
}
|
||||||
|
|
||||||
APFloat &getFpVal(void)
|
APFloat &getFpVal(void) {
|
||||||
{ assert(IsFp && BufHasFpVal && "Incorret state"); return *getFpValPtr(); }
|
assert(IsFp && BufHasFpVal && "Incorret state");
|
||||||
|
return *getFpValPtr();
|
||||||
|
}
|
||||||
|
|
||||||
bool isInt() const { return !IsFp; }
|
bool isInt() const { return !IsFp; }
|
||||||
|
|
||||||
|
@ -266,9 +266,8 @@ Instruction *InstCombiner::OptAndOp(Instruction *Op,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Emit a computation of: (V >= Lo && V < Hi) if Inside is true, otherwise
|
||||||
/// InsertRangeTest - Emit a computation of: (V >= Lo && V < Hi) if Inside is
|
/// (V < Lo || V >= Hi). In practice, we emit the more efficient
|
||||||
/// true, otherwise (V < Lo || V >= Hi). In practice, we emit the more efficient
|
|
||||||
/// (V-Lo) \<u Hi-Lo. This method expects that Lo <= Hi. isSigned indicates
|
/// (V-Lo) \<u Hi-Lo. This method expects that Lo <= Hi. isSigned indicates
|
||||||
/// whether to treat the V, Lo and HI as signed or not. IB is the location to
|
/// whether to treat the V, Lo and HI as signed or not. IB is the location to
|
||||||
/// insert new instructions.
|
/// insert new instructions.
|
||||||
|
@ -1372,7 +1372,8 @@ InstCombiner::transformCallThroughTrampoline(CallSite CS,
|
|||||||
NestF->getType() == PointerType::getUnqual(NewFTy) ?
|
NestF->getType() == PointerType::getUnqual(NewFTy) ?
|
||||||
NestF : ConstantExpr::getBitCast(NestF,
|
NestF : ConstantExpr::getBitCast(NestF,
|
||||||
PointerType::getUnqual(NewFTy));
|
PointerType::getUnqual(NewFTy));
|
||||||
const AttributeSet &NewPAL = AttributeSet::get(FTy->getContext(), NewAttrs);
|
const AttributeSet &NewPAL =
|
||||||
|
AttributeSet::get(FTy->getContext(), NewAttrs);
|
||||||
|
|
||||||
Instruction *NewCaller;
|
Instruction *NewCaller;
|
||||||
if (InvokeInst *II = dyn_cast<InvokeInst>(Caller)) {
|
if (InvokeInst *II = dyn_cast<InvokeInst>(Caller)) {
|
||||||
|
@ -69,8 +69,8 @@ isOnlyCopiedFromConstantGlobal(Value *V, MemTransferInst *&TheCopy,
|
|||||||
if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(U)) {
|
if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(U)) {
|
||||||
// If the GEP has all zero indices, it doesn't offset the pointer. If it
|
// If the GEP has all zero indices, it doesn't offset the pointer. If it
|
||||||
// doesn't, it does.
|
// doesn't, it does.
|
||||||
if (!isOnlyCopiedFromConstantGlobal(GEP, TheCopy, ToDelete,
|
if (!isOnlyCopiedFromConstantGlobal(
|
||||||
IsOffset || !GEP->hasAllZeroIndices()))
|
GEP, TheCopy, ToDelete, IsOffset || !GEP->hasAllZeroIndices()))
|
||||||
return false;
|
return false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user