This is an archive of the discontinued LLVM Phabricator instance.

[ConstProp] Constant propagation for get.active.lane.mask instrinsics
ClosedPublic

Authored by dmgreen on Jan 5 2021, 10:51 AM.

Details

Summary

Similar to the Arm VCTP intrinsics, if the operands of an active.lane.mask are both known, the constant lane mask can be calculated. This can come up after unrolling the loops.

Diff Detail

Event Timeline

dmgreen created this revision.Jan 5 2021, 10:51 AM
dmgreen requested review of this revision.Jan 5 2021, 10:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2021, 10:51 AM
SjoerdMeijer accepted this revision.Jan 5 2021, 11:16 AM

Nice one, LGTM.

Perhaps add some negative tests where the operands are not constants, just to be sure? Doesn't need another review.

This revision is now accepted and ready to land.Jan 5 2021, 11:16 AM