Canonicalize away unused arguments to the before region of a whileOp
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/SCF/SCF.cpp | ||
---|---|---|
2476 | This does not seem used right now? |
mlir/lib/Dialect/SCF/SCF.cpp | ||
---|---|---|
2461 | I think it is worth having an early exit before doing any heavy work: if (!llvm::any_of(op.getBeforeArguments(), [] (Value arg) { return arg.use_empty(); }) return failure(); |
I think it is worth having an early exit before doing any heavy work: