summaryrefslogtreecommitdiff
path: root/mlir/lib/Interfaces/ControlFlowInterfaces.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Interfaces/ControlFlowInterfaces.cpp')
-rw-r--r--mlir/lib/Interfaces/ControlFlowInterfaces.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/mlir/lib/Interfaces/ControlFlowInterfaces.cpp b/mlir/lib/Interfaces/ControlFlowInterfaces.cpp
index 3a63db35eec0..ca3f7666dba8 100644
--- a/mlir/lib/Interfaces/ControlFlowInterfaces.cpp
+++ b/mlir/lib/Interfaces/ControlFlowInterfaces.cpp
@@ -9,9 +9,7 @@
#include <utility>
#include "mlir/IR/BuiltinTypes.h"
-#include "mlir/Interfaces/CallInterfaces.h"
#include "mlir/Interfaces/ControlFlowInterfaces.h"
-#include "llvm/ADT/SmallPtrSet.h"
using namespace mlir;
@@ -99,10 +97,6 @@ static LogicalResult verifyWeights(Operation *op,
<< ": " << weights.size() << " vs "
<< expectedWeightsNum;
- for (auto [index, weight] : llvm::enumerate(weights))
- if (weight < 0)
- return op->emitError() << "weight #" << index << " must be non-negative";
-
if (llvm::all_of(weights, [](int32_t value) { return value == 0; }))
return op->emitError() << "branch weights cannot all be zero";