This patch adds a moveAfter method to VPRecipeBase, which can be used to
move elements after other elements, across VPBasicBlocks, if necessary.
It also adds an initial unittest for VPlan.
Differential D46825
[VPlan] Add moveAfter to VPRecipeBase. fhahn on May 14 2018, 3:54 AM. Authored by
Details This patch adds a moveAfter method to VPRecipeBase, which can be used to It also adds an initial unittest for VPlan.
Diff Detail Event TimelineComment Actions Thanks for the unittest, Florian! I will be very useful!
Comment Actions Thanks Diego. I think we should be able to use unit tests extensively for VPlan, as it should be quite lightweight to construct a VPlan, run a transformation and check the resulting VPlan.
Comment Actions Only minor comments! LGTM.
Comment Actions Just make sure that in the final version of D46827 this code is still necessary. Comment Actions After the recent changes to D46827, this patch is not really necessary for now, but it may be useful in the future. |
instruction -> recipe
VPBasicBloack -> VPBasicBlock
I wonder if it would be better to start a VPInstructionUtils and move this utility there, similar to what I did with VPBlockUtils in D44338.