aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/lib/CodeGen/MachineCSE.cpp')
-rw-r--r--backend/lib/CodeGen/MachineCSE.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/backend/lib/CodeGen/MachineCSE.cpp b/backend/lib/CodeGen/MachineCSE.cpp
index 30129bc..50dca0e 100644
--- a/backend/lib/CodeGen/MachineCSE.cpp
+++ b/backend/lib/CodeGen/MachineCSE.cpp
@@ -293,10 +293,6 @@ const MachinePassContract &MachineCSEPass::contract() const noexcept {
Expected<MachinePassResult> MachineCSEPass::run(MachineFunction &Function,
const TargetDescription &Target,
MachineFunctionAnalysisManager &Analyses) {
- if (!Function.properties().containsAll(contract().Requires)) {
- return makeUnexpected(ErrorCode::VerificationError,
- "machine CSE requires selected SSA MachineIR");
- }
auto Trial = cloneMachineFunction(
Function, Target,
MachineFunctionCloneOptions{.NewStableID = Function.stableID(), .NewName = std::nullopt});