This is an archive of the discontinued LLVM Phabricator instance.

Add -lowertypetests-bitsets-level to control bitsets generation.
ClosedPublic

Authored by krasin on Aug 2 2016, 3:27 PM.

Details

Summary

Sometimes, bitsets could get really large (>300k entries) and
we might want to drop a check, as it would have a too much cost.

Adding a flag to control how much penalty are we willing to pay
for bitsets.

Diff Detail

Event Timeline

krasin updated this revision to Diff 66571.Aug 2 2016, 3:27 PM
krasin retitled this revision from to Add -lowertypetests-bitsets-level to control bitsets generation..
krasin updated this object.
krasin added a reviewer: kcc.
krasin updated this revision to Diff 66572.Aug 2 2016, 3:30 PM

make the test a bit more strict.

kcc accepted this revision.Aug 2 2016, 3:43 PM
kcc edited edge metadata.

LGTM with a nit.

Please also add a runable test to compiler-rt as a separate change.

lib/Transforms/IPO/LowerTypeTests.cpp
474–475

extend the comment:
// If the bit set is all ones (or we treat it as such), ...

This revision is now accepted and ready to land.Aug 2 2016, 3:43 PM
krasin updated this revision to Diff 66600.Aug 2 2016, 5:51 PM
krasin edited edge metadata.

Update a comment.

krasin closed this revision.Aug 2 2016, 6:07 PM
pcc added a subscriber: pcc.Sep 6 2016, 9:19 AM
pcc added inline comments.
lib/Transforms/IPO/LowerTypeTests.cpp
52

It seems really bizarre for a command line flag to affect an intrinsic's semantics like this. If we want this at all it should probably be an intrinsic argument or something.

pcc added inline comments.Sep 26 2016, 4:34 PM
lib/Transforms/IPO/LowerTypeTests.cpp
52

Ping.