mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove the transparent bit from apply instructions.
We no longer need or use it since we can always refer to the same bit on the applied function when deciding whether to inline during mandatory inlining. Resolves rdar://problem/19478366. Swift SVN r26534
This commit is contained in:
@@ -179,10 +179,9 @@ ApplyInst::ApplyInst(SILLocation Loc, SILValue Callee,
|
||||
SILType SubstCalleeTy,
|
||||
SILType Result,
|
||||
ArrayRef<Substitution> Subs,
|
||||
ArrayRef<SILValue> Args,
|
||||
bool Transparent)
|
||||
ArrayRef<SILValue> Args)
|
||||
: SILInstruction(ValueKind::ApplyInst, Loc, Result),
|
||||
NumSubstitutions(Subs.size()), Transparent(Transparent),
|
||||
NumSubstitutions(Subs.size()),
|
||||
SubstCalleeType(SubstCalleeTy),
|
||||
Operands(this, Args, Callee)
|
||||
{
|
||||
@@ -197,13 +196,13 @@ ApplyInst *ApplyInst::create(SILLocation Loc, SILValue Callee,
|
||||
SILType Result,
|
||||
ArrayRef<Substitution> Subs,
|
||||
ArrayRef<SILValue> Args,
|
||||
bool Transparent, SILFunction &F) {
|
||||
SILFunction &F) {
|
||||
void *Buffer = F.getModule().allocate(sizeof(ApplyInst)
|
||||
+ decltype(Operands)::getExtraSize(Args.size())
|
||||
+ sizeof(Substitution) * Subs.size(),
|
||||
alignof(ApplyInst));
|
||||
return ::new(Buffer) ApplyInst(Loc, Callee, SubstCalleeTy,
|
||||
Result, Subs, Args, Transparent);
|
||||
Result, Subs, Args);
|
||||
}
|
||||
|
||||
bool ApplyInst::hasSemantics(StringRef SemanticsString) const {
|
||||
|
||||
Reference in New Issue
Block a user