mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Update and add new apis on ForwardingInstruction
This commit is contained in:
@@ -1803,8 +1803,10 @@ SILValue swift::makeValueAvailable(SILValue value, SILBasicBlock *inBlock) {
|
||||
|
||||
bool swift::tryEliminateOnlyOwnershipUsedForwardingInst(
|
||||
SingleValueInstruction *forwardingInst, InstModCallbacks &callbacks) {
|
||||
if (!ForwardingInstruction::isa(forwardingInst) ||
|
||||
isa<AllArgOwnershipForwardingSingleValueInst>(forwardingInst))
|
||||
if (!ForwardingInstruction::isa(forwardingInst))
|
||||
return false;
|
||||
|
||||
if (ForwardingInstruction::canForwardAllOperands(forwardingInst))
|
||||
return false;
|
||||
|
||||
SmallVector<Operand *, 32> worklist(getNonDebugUses(forwardingInst));
|
||||
|
||||
Reference in New Issue
Block a user