Otherwise the lack of an iteration order results in non-determinism in codegen.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Tobias,
There is another SmallPtrSet in lib/Analysis/ScopInfo.h which is being iterated IslNodeBuilder.cpp:
SmallPtrSet<ScopArrayInfo *, 2> DerivedSAIs; const SmallPtrSetImpl<ScopArrayInfo *> &getDerivedSAIs() const { return DerivedSAIs; }
I wanted to change this into a SmallSetVector but I am not sure how to replace SmallPtrSetImpl with a SmallSetVector version.
Any pointers would be appreciated.
Thanks,
Mandeep
Comment Actions
Regarding the second change. I also don't see how we can use a SmallSetVectorImpl. I suggest to just use a SetVector for now. This is certainly correct and I doubt this part is performance critical. Feel free to commit such a change without further review.