Skip to content

Fusing a specialization drops compute_withs from generated code #6763

@JoelLinn

Description

@JoelLinn

The following pseudo code

Func out0, out1;
out0(x,y) = 1 * in(x,y);
out1(x,y) = 2 * in(x,y);

out0.vectorize(x, vs);
out1.vectorize(x, vs).compute_with(out0, x);

out0.specialize(in.dim(1).stride() == 128).fuse(x,y,f);

will generate code where out1 is never written for the specialized case, only out0 is.
This should instead either give a generation time error or ideally fuse the compute_with function(s) as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions