This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel][AArch64] Gardening: Factor out code to find lane indices
ClosedPublic

Authored by paquette on Mar 13 2019, 1:46 PM.

Details

Summary

Some more refactoring for G_INSERT_VECTOR_ELT.

Factor out the code used to find a lane index from selectExtractElt. Put it into a more general-purpose getConstantValueForReg function.

This will be shared with the code for G_INSERT_VECTOR_ELT.

Diff Detail

Repository
rL LLVM

Event Timeline

paquette created this revision.Mar 13 2019, 1:46 PM
aemerson accepted this revision.Mar 13 2019, 2:05 PM

LGTM.

This revision is now accepted and ready to land.Mar 13 2019, 2:05 PM
This revision was automatically updated to reflect the committed changes.