[PATCH] D46827: [VPlan] Add VPInstruction to VPRecipe transformation.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 8 09:09:05 PDT 2018
craig.topper added inline comments.
================
Comment at: lib/Transforms/Vectorize/VPlanHCFGTransforms.cpp:134
+ RSO << "VPRecipe-based VPlan for VF={";
+ for (unsigned VF : OriginalPlan->getVFs()) {
+ Plan->addVF(VF);
----------------
fhahn wrote:
> craig.topper wrote:
> > Is the iteration order guaranteed here when the set is small? It's been a while since I've look at how SmallSet manages the vector.
> I've just put up a patch adding an iterator for SmallSet: D47942
>
> If the set is small, it just uses a SmallVector, otherwise it uses std::set, which should also give a deterministic iteration order.
I guess deterministic wasn't the right word. It looks like when the set is small this will print out in the order that the VFs were inserted into the set not a numeric order? Given that this is going into a string is that a good idea?
https://reviews.llvm.org/D46827
More information about the llvm-commits
mailing list