File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
mlir/lib/Analysis/DataFlow Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ void LivenessAnalysis::visitBranchRegionArgument(BlockArgument &blockArgument) {
276276 LDBG () << " Visiting branch region argument: " << blockArgument
277277 << " in op: " << OpWithFlags (parentOp, OpPrintingFlags ().skipRegions ());
278278 Liveness *argumentLiveness = getLatticeElement (blockArgument);
279- SmallVector<Liveness *> parentResultsLiveness;
279+ SmallVector<Liveness *, 4 > parentResultsLiveness;
280280 for (Value result : parentOp->getResults ())
281281 parentResultsLiveness.push_back (getLatticeElement (result));
282282
Original file line number Diff line number Diff line change @@ -612,9 +612,10 @@ void AbstractSparseBackwardDataFlowAnalysis::visitRegionSuccessors(
612612
613613 if (successor.isParent ())
614614 continue ;
615- auto arguments = successor.getSuccessor ()->getArguments ();
615+ MutableArrayRef<BlockArgument> arguments =
616+ successor.getSuccessor ()->getArguments ();
616617 for (BlockArgument argument : arguments) {
617- if (llvm::find (inputs, argument) == inputs. end ( )) {
618+ if (! llvm::is_contained (inputs, argument)) {
618619 regionArguments.push_back (argument);
619620 }
620621 }
You can’t perform that action at this time.
0 commit comments