This is an archive of the discontinued LLVM Phabricator instance.

[VPlan] Move addition of canonical IV increments & branches later. (WIP)
Needs ReviewPublic

Authored by fhahn on Aug 11 2023, 7:04 AM.

Details

Reviewers
Ayal
gilr
rengolin
Summary

This patch breaks up quite complicated addCanonicalIVRecipes into 2
distinct parts

  1. Initially, only create an incomplete VPCanonicalIVPHI recipe
  2. Introduce the canonical IV increments and branches later in separate transform.

This gradual lowering makes initial construction simpler and allows
introducing VF & UF specific increments late when they are fixed. It
also enables introducing VPActiveLaneMaskPHIRecipe directly when needed
(tail folding).

It should also allow introducing additional ingredients like
explicit-vector length handling gradually.

Depends on D157713.

Diff Detail

Event Timeline

fhahn created this revision.Aug 11 2023, 7:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2023, 7:04 AM
fhahn requested review of this revision.Aug 11 2023, 7:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2023, 7:04 AM
Herald added subscribers: wangpc, vkmr. · View Herald Transcript