llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Incorrect handling of `CallOpInterface` in `AbstractSparseBackwardDataFlowAnalysis`

Open srishti-pm opened this issue 3 years ago • 4 comments

Currently, data in AbstractSparseBackwardDataFlowAnalysis is considered to flow one-to-one, in order, from the operands of an op implementing CallOpInterface to the arguments of the function it is calling.

This understanding of the data flow is inaccurate. The operands of such an op that forward to the function arguments are obtained using a method provided by CallOpInterface called getArgOperands().

This means that instead of using getOperands() to get the mapping from operands to function arguments, we need to use getArgOperands() to get this mapping because not all operands necessarily forward to the function arguments and even if they do, they don't necessarily have to be in the order in which they appear in the op.

srishti-pm avatar Aug 07 '23 02:08 srishti-pm

@llvm/issue-subscribers-mlir

llvmbot avatar Aug 07 '23 02:08 llvmbot

I'm working on fixing this right now.

srishti-pm avatar Aug 07 '23 02:08 srishti-pm

Fix implemented: https://reviews.llvm.org/D157261. Awaiting review.

srishti-pm avatar Aug 07 '23 09:08 srishti-pm

Patch submitted. Thus, closing the issue.

srishti-pm avatar Aug 14 '23 22:08 srishti-pm