diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2025-07-18 13:26:00 -0700 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2025-07-18 13:26:00 -0700 |
| commit | 9bf3524731070cadc6175707314f3b6ca37190d5 (patch) | |
| tree | 86dcab7604336b01ae938fe81062c29ff69efba8 /mlir/lib/Interfaces/ControlFlowInterfaces.cpp | |
| parent | 3a84c15cc13b6daf8e812592898ab6c7f19091a9 (diff) | |
| parent | 4f43f0606c3d7e1ce6d069583b5e59f036e112ce (diff) | |
Created using spr 1.3.6-beta.1
Diffstat (limited to 'mlir/lib/Interfaces/ControlFlowInterfaces.cpp')
| -rw-r--r-- | mlir/lib/Interfaces/ControlFlowInterfaces.cpp | 6 |
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"; |
