This is an archive of the discontinued LLVM Phabricator instance.

[Legalize] Hoist invariant condition in ExpandVectorBuildThroughStack(...)
ClosedPublic

Authored by cameron.mcinally on Jul 15 2020, 8:46 AM.

Details

Summary

The operands of a BUILD_VECTOR must all have the same type, so we can hoist this invariant condition out of the loop.

I'm a little torn if this change actually helps code clarity, so would be happy to abandon it too.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJul 15 2020, 8:46 AM
arsenm accepted this revision.Jul 15 2020, 8:50 AM
This revision is now accepted and ready to land.Jul 15 2020, 8:50 AM
This revision was automatically updated to reflect the committed changes.