add DFG switch

This commit is contained in:
Yilou Wang 2026-04-06 01:18:55 +02:00
parent 94d9b0f8c3
commit 4569224be7
2 changed files with 6 additions and 1 deletions

View File

@ -692,7 +692,10 @@ void DfgVertex::typeCheck(const DfgGraph& dfg) const {
}
case VDfgType::SAnd:
case VDfgType::SOr: UASSERT_OBJ(false, this, "SAnd/SOr should be removed before DFG"); return;
case VDfgType::SOr:
case VDfgType::SThroughout:
UASSERT_OBJ(false, this, "SAnd/SOr/SThroughout should be removed before DFG");
return;
case VDfgType::LogAnd:
case VDfgType::LogEq:

View File

@ -126,6 +126,7 @@ class V3DfgCse final {
case VDfgType::StreamR:
case VDfgType::SAnd:
case VDfgType::SOr:
case VDfgType::SThroughout:
case VDfgType::Sub:
case VDfgType::Xor: return V3Hash{};
}
@ -246,6 +247,7 @@ class V3DfgCse final {
case VDfgType::StreamL:
case VDfgType::SAnd:
case VDfgType::SOr:
case VDfgType::SThroughout:
case VDfgType::StreamR:
case VDfgType::Sub:
case VDfgType::Xor: return true;