This is an archive of the discontinued LLVM Phabricator instance.

[VPlan] Scalarize VPWidenPointerInductionRecipe.
Needs ReviewPublic

Authored by fhahn on Dec 13 2022, 3:34 PM.

Details

Reviewers
Ayal
gilr
rengolin
Summary

This is not quite finished but sketches how scalar values for pointer inductions can be created using VPDerivedIVRecipe.

Diff Detail

Event Timeline

fhahn created this revision.Dec 13 2022, 3:34 PM
fhahn requested review of this revision.Dec 13 2022, 3:34 PM
fhahn updated this revision to Diff 483634.Dec 16 2022, 12:13 PM

Update to remove now unused IsScalarAfterVectorization.

fhahn updated this revision to Diff 514273.Apr 17 2023, 9:29 AM

Rebase and updated all tests.

The main issue is that the current version of the patch requires creating a temporary GEP instruction to be used with the newly created VPReplicateRecipe. Re-using the existing GEP doesn't work in all cases. Any suggestions on how to best deal with that would be greatly appreciated.