Page MenuHomePhabricator

[VPlan] Introduce VPConstant specialization for VPValue
Needs ReviewPublic

Authored by sguggill on Jan 11 2021, 8:56 AM.

Details

Reviewers
fhahn
hsaito
Ayal
Summary

The changes here introduce VPConstant specialization for VPValues. When constructing VPlan for a candidate loop in the native path, we now create a VPConstant when the corresponding underlying value is a constant.

This change allows us to share the same set of VPConstants in different VPlans constructed for a candidate loop. The sub-class can also be used to infer a VPValue uniformity in VPlan based divergence analysis. These changes will be posted in subsequent follow up patches.

Diff Detail

Event Timeline

sguggill created this revision.Jan 11 2021, 8:56 AM
sguggill requested review of this revision.Jan 11 2021, 8:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 11 2021, 8:56 AM