This is an archive of the discontinued LLVM Phabricator instance.

DAG: Combine extract_vector_elt of concat_vectors
ClosedPublic

Authored by arsenm on Sep 6 2018, 10:05 AM.

Details

Summary

Fixes extra canonicalize regressions when legalizing
vector fminnum/fmaxnum.

Diff Detail

Event Timeline

arsenm created this revision.Sep 6 2018, 10:05 AM

Handling INSERT_SUBVECTOR might make sense as well?

arsenm added a comment.Sep 9 2018, 8:25 PM

Handling INSERT_SUBVECTOR might make sense as well?

Probably. I think that's a separate patch, since now both indexes need to be considered. I think this only works if the indexes match

RKSimon added inline comments.Sep 12 2018, 3:53 AM
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
15493 ↗(On Diff #164234)

Do we need a TLI.isOperationLegal(ISD::EXTRACT_VECTOR_ELT, ConcatVT) check?

@arsenm What's happening with this patch?

RKSimon accepted this revision.Apr 6 2020, 4:15 AM

LGTM

This revision is now accepted and ready to land.Apr 6 2020, 4:15 AM