This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Require constant index for INSERT/EXTRACT_SUBVECTOR.
ClosedPublic

Authored by efriedma on May 12 2020, 3:21 PM.

Details

Summary

A variable index sounds like an interesting idea in theory, but nothing is actually taking advantage of it, and specifying/implementing the edge cases is painful. So just forbid it.

Diff Detail

Event Timeline

efriedma created this revision.May 12 2020, 3:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2020, 3:21 PM

Thank you - I'd love to see this - it'll allow me to strip a load of untested code paths in ComputeNumBits/SimplifyDemanded etc..

This revision is now accepted and ready to land.May 13 2020, 11:35 AM
This revision was automatically updated to reflect the committed changes.