This is an archive of the discontinued LLVM Phabricator instance.

[Scalarizer] ExtractElement handling w/ variable insert index (PR46524)
ClosedPublic

Authored by lebedev.ri on Jul 1 2020, 8:20 AM.

Diff Detail

Event Timeline

lebedev.ri created this revision.Jul 1 2020, 8:20 AM
arsenm added a comment.Jul 1 2020, 4:46 PM

I think this maybe should be a pass option

llvm/lib/Transforms/Scalar/Scalarizer.cpp
785

Does this need to worry about scalable vectors?

lebedev.ri marked 2 inline comments as done.Jul 2 2020, 2:29 AM

I think this maybe should be a pass option

I can make it an option, but since it's not actually currently yet enabled
in default pipelines i'd maybe like to hear from the authors
and/or those who have it enabled in their pipelines.
Makes sense?

llvm/lib/Transforms/Scalar/Scalarizer.cpp
785

Likely. I think that worry is pass-wide,
so i'm just gonna follow the existing pattern.

lebedev.ri marked an inline comment as done.

Adding opt-out flag.

lebedev.ri updated this revision to Diff 275264.Jul 2 2020, 4:55 PM
lebedev.ri retitled this revision from [Scalarizer] Variable insert handling (PR46524) to [Scalarizer] ExtractElement handling w/ variable insert index (PR46524).

Reordered, precommitted tests.

jdoerfert accepted this revision.Jul 4 2020, 1:40 PM

LGTM.

llvm/lib/Transforms/Scalar/Scalarizer.cpp
788

Nit: shorten the lifetime.

This revision is now accepted and ready to land.Jul 4 2020, 1:40 PM
This revision was automatically updated to reflect the committed changes.