Skip to content

Commit 4bed671

Browse files
committed
[region-isolation] Now that we support all instructions, remove Unhandled... all future instructions added must be handled!
1 parent 7d13d27 commit 4bed671

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/SILOptimizer/Analysis/RegionAnalysis.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,10 +1172,6 @@ enum class TranslationSemantics {
11721172
/// without updating this code correctly. This is most likely driver error and
11731173
/// should be caught in testing when we assert.
11741174
AssertingIfNonSendable,
1175-
1176-
/// An instruction that we do not handle yet. Just for now during bring
1177-
/// up. Will be removed.
1178-
Unhandled,
11791175
};
11801176

11811177
} // namespace
@@ -1218,9 +1214,6 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &os,
12181214
case TranslationSemantics::AssertingIfNonSendable:
12191215
os << "asserting_if_nonsendable";
12201216
return os;
1221-
case TranslationSemantics::Unhandled:
1222-
os << "unhandled";
1223-
return os;
12241217
}
12251218

12261219
llvm_unreachable("Covered switch isn't covered?!");
@@ -2120,9 +2113,6 @@ class PartitionOpTranslator {
21202113
"transfer-non-sendable: Found banned instruction?!");
21212114
return;
21222115

2123-
case TranslationSemantics::Unhandled:
2124-
LLVM_DEBUG(llvm::dbgs() << "Unhandled inst: " << *inst);
2125-
return;
21262116
case TranslationSemantics::AssertingIfNonSendable:
21272117
// Do not error if all of our operands are sendable.
21282118
if (llvm::none_of(inst->getOperandValues(), [&](SILValue value) {

0 commit comments

Comments
 (0)