This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Add EXTRACT_SUBVECTOR to SimplifyDemandedVectorElts
ClosedPublic

Authored by RKSimon on Jul 2 2018, 3:32 AM.

Details

Summary

As discussed on PR37989, this patch adds EXTRACT_SUBVECTOR handling to TargetLowering::SimplifyDemandedVectorElts and calls it from DAGCombiner::visitEXTRACT_SUBVECTOR.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Jul 2 2018, 3:32 AM
craig.topper added inline comments.Jul 5 2018, 10:38 AM
lib/CodeGen/SelectionDAG/TargetLowering.cpp
1487 ↗(On Diff #153692)

const APInt &? It doesn't look like we need a copy.

RKSimon updated this revision to Diff 154272.Jul 5 2018, 11:16 AM

Fixed APInt& (and did the same for INSERT_SUBVECTOR while I was at it - but I'll commit that separately).

This revision is now accepted and ready to land.Jul 5 2018, 11:23 AM
This revision was automatically updated to reflect the committed changes.