This is an archive of the discontinued LLVM Phabricator instance.

[BitcodeReader] Ensure we can read constant vector selects with an i1 condition
ClosedPublic

Authored by filcab on Aug 28 2015, 11:35 AM.

Details

Summary

Constant vectors weren't allowed to have an i1 condition in the
BitcodeReader. Make sure we have the same restrictions that are
documented, not more.

Diff Detail

Event Timeline

filcab updated this revision to Diff 33447.Aug 28 2015, 11:35 AM
filcab retitled this revision from to [BitcodeReader] Ensure we can read constant vector selects with an i1 condition.
filcab updated this object.
filcab added reviewers: nlewycky, rafael.
filcab added a subscriber: llvm-commits.
kschimpf added inline comments.
lib/Bitcode/Reader/BitcodeReader.cpp
2482

Out of curiosity, why not use SelectorTy instead of Type::getInt1Ty(Context), since you have already computed it?

filcab added a subscriber: filcab.Aug 28 2015, 1:27 PM

True. I'll fix it later today.

Thanks,

Filipe

filcab updated this revision to Diff 33476.Aug 28 2015, 3:15 PM

Addressed review comments.

kschimpf accepted this revision.Aug 28 2015, 3:38 PM
kschimpf added a reviewer: kschimpf.
This revision is now accepted and ready to land.Aug 28 2015, 3:38 PM
This revision was automatically updated to reflect the committed changes.