This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Prevent warnings when extracting fixed length vector from scalable.
ClosedPublic

Authored by paulwalker-arm on Jul 12 2020, 7:53 AM.

Details

Summary

ComputeNumSignBits and computeKnownBits both trigger "Scalable flag
may be dropped" warnings when a fixed length vector is extracted
from a scalable vector. This patch assumes nothing about the
demanded elements thus matching the behaviour when extracting a
scalable vector from a scalable vector.

Diff Detail

Event Timeline

paulwalker-arm created this revision.Jul 12 2020, 7:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2020, 7:53 AM

Made new test consistent with the others in the file.

This revision is now accepted and ready to land.Jul 13 2020, 2:11 PM
david-arm accepted this revision.Jul 13 2020, 11:41 PM

LGTM too! I'm wiping the tears of joy from my eyes as I type ...

This revision was automatically updated to reflect the committed changes.