This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Make ISD::isConstantSplatVector always return an element sized APInt.
ClosedPublic

Authored by craig.topper on Aug 22 2017, 4:27 PM.

Details

Summary

This partially reverts r311429 in favor of making ISD::isConstantSplatVector do something not confusing. Turns out the only other user of it was also having to deal with the weird property of it returning a smaller size.

So rather than continue to deal with this quirk everywhere, just make the interface do something sane.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Aug 22 2017, 4:27 PM
chandlerc accepted this revision.Aug 22 2017, 4:41 PM

Hah! Even nicer. Thanks, LGTM!

This revision is now accepted and ready to land.Aug 22 2017, 4:41 PM
This revision was automatically updated to reflect the committed changes.