This is not quite finished but sketches how scalar values for pointer inductions can be created using VPDerivedIVRecipe.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
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.