mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +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();
|
||||
}
|
||||
|
||||
APFloat &getFpVal(void)
|
||||
{ assert(IsFp && BufHasFpVal && "Incorret state"); return *getFpValPtr(); }
|
||||
APFloat &getFpVal(void) {
|
||||
assert(IsFp && BufHasFpVal && "Incorret state");
|
||||
return *getFpValPtr();
|
||||
}
|
||||
|
||||
bool isInt() const { return !IsFp; }
|
||||
|
||||
|
@ -266,9 +266,8 @@ Instruction *InstCombiner::OptAndOp(Instruction *Op,
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/// InsertRangeTest - Emit a computation of: (V >= Lo && V < Hi) if Inside is
|
||||
/// true, otherwise (V < Lo || V >= Hi). In practice, we emit the more efficient
|
||||
/// Emit a computation of: (V >= Lo && V < Hi) if Inside is 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
|
||||
/// whether to treat the V, Lo and HI as signed or not. IB is the location to
|
||||
/// insert new instructions.
|
||||
|
@ -1372,7 +1372,8 @@ InstCombiner::transformCallThroughTrampoline(CallSite CS,
|
||||
NestF->getType() == PointerType::getUnqual(NewFTy) ?
|
||||
NestF : ConstantExpr::getBitCast(NestF,
|
||||
PointerType::getUnqual(NewFTy));
|
||||
const AttributeSet &NewPAL = AttributeSet::get(FTy->getContext(), NewAttrs);
|
||||
const AttributeSet &NewPAL =
|
||||
AttributeSet::get(FTy->getContext(), NewAttrs);
|
||||
|
||||
Instruction *NewCaller;
|
||||
if (InvokeInst *II = dyn_cast<InvokeInst>(Caller)) {
|
||||
|
@ -69,8 +69,8 @@ isOnlyCopiedFromConstantGlobal(Value *V, MemTransferInst *&TheCopy,
|
||||
if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(U)) {
|
||||
// If the GEP has all zero indices, it doesn't offset the pointer. If it
|
||||
// doesn't, it does.
|
||||
if (!isOnlyCopiedFromConstantGlobal(GEP, TheCopy, ToDelete,
|
||||
IsOffset || !GEP->hasAllZeroIndices()))
|
||||
if (!isOnlyCopiedFromConstantGlobal(
|
||||
GEP, TheCopy, ToDelete, IsOffset || !GEP->hasAllZeroIndices()))
|
||||
return false;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user