Skip to content

Commit 4f362b2

Browse files
authored
Merge pull request #71193 from meg-gupta/disablecheckedcastjumpthread
Disable checked_cast_br jump threading in ossa temporarily
2 parents 384a66a + 55e4826 commit 4f362b2

File tree

2 files changed

+154
-149
lines changed

2 files changed

+154
-149
lines changed

lib/SILOptimizer/Utils/CheckedCastBrJumpThreading.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,11 @@ bool tryCheckedCastBrJumpThreading(
804804
SmallVectorImpl<SILBasicBlock *> &BlocksForWorklist,
805805
bool EnableOSSARewriteTerminator) {
806806

807+
// TODO: Disable for OSSA temporarily
808+
if (Fn->hasOwnership()) {
809+
return false;
810+
}
811+
807812
CheckedCastBrJumpThreading CCBJumpThreading(Fn, DT, deBlocks,
808813
BlocksForWorklist,
809814
EnableOSSARewriteTerminator);

0 commit comments

Comments
 (0)