Skip to content

Commit 42c0319

Browse files
committed
Enable CSE on OSSA
1 parent d1f8c04 commit 42c0319

File tree

9 files changed

+2803
-108
lines changed

9 files changed

+2803
-108
lines changed

include/swift/SILOptimizer/Utils/OwnershipOptUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct OwnershipFixupContext {
4242
/// Namely, we do not support RAUWing values with ValueOwnershipKind::None
4343
/// that have uses that do not require ValueOwnershipKind::None or
4444
/// ValueOwnershipKind::Any.
45-
static bool canFixUpOwnershipForRAUW(SingleValueInstruction *oldValue,
45+
static bool canFixUpOwnershipForRAUW(const SingleValueInstruction *oldValue,
4646
SILValue newValue);
4747
};
4848

lib/SIL/IR/SILInstruction.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,14 @@ namespace {
372372
return true;
373373
}
374374

375+
bool visitDestructureStructInst(const DestructureStructInst *RHS) {
376+
return true;
377+
}
378+
379+
bool visitDestructureTupleInst(const DestructureTupleInst *RHS) {
380+
return true;
381+
}
382+
375383
bool visitAllocRefInst(const AllocRefInst *RHS) {
376384
auto *LHSInst = cast<AllocRefInst>(LHS);
377385
auto LHSTypes = LHSInst->getTailAllocatedTypes();

0 commit comments

Comments
 (0)