================
@@ -316,19 +315,17 @@ void 
AbstractSparseForwardDataFlowAnalysis::visitRegionSuccessors(
         if (!inputs.empty())
           firstIndex = cast<OpResult>(inputs.front()).getResultNumber();
         visitNonControlFlowArgumentsImpl(
-            branch,
-            RegionSuccessor::parent(
-                branch->getResults().slice(firstIndex, inputs.size())),
-            lattices, firstIndex);
+            branch, RegionSuccessor::parent(),
+            branch->getResults().slice(firstIndex, inputs.size()), lattices,
----------------
linuxlonelyeagle wrote:

Could we avoid adding an extra argument to 
`visitNonControlFlowArgumentsImpl`?"Since this PR implements 
getSuccessorInputs, I think we could potentially leverage it in the subsequent 
call.

https://github.com/llvm/llvm-project/pull/175815
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to