Make zip_common increment and decrement iterators in place.
This improves performance with iterator types that have non-triviall
copy constructors.
| Paths 
 |  Differential  D145337  
[ADT] Avoid needless iterator copies in `zippy` ClosedPublic Authored by kuhar on Mar 5 2023, 3:51 PM. 
Details Summary Make zip_common increment and decrement iterators in place. This improves performance with iterator types that have non-triviall 
Diff Detail 
 Event Timelinekuhar added a child revision: D144503: [ADT] Allow `llvm::enumerate` to enumerate over multiple ranges.Mar 5 2023, 5:43 PM 
 kuhar added inline comments. 
 kuhar removed a child revision: D145351: [cmake] Export component info needed to determine which libraries are in libLLVM.so..Mar 6 2023, 10:47 AM kuhar marked 2 inline comments as done. Comment Actions LGTM thanks! 
 This revision is now accepted and ready to land.Mar 6 2023, 11:33 AM This revision was landed with ongoing or failed builds.Mar 6 2023, 11:45 AM Closed by commit rG38774c4f39a7: [ADT] Avoid needless iterator copies in `zippy` (authored by kuhar).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 502747 llvm/include/llvm/ADT/STLExtras.h
 llvm/unittests/ADT/IteratorTest.cpp
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ultra nit: We only usually use explicit casts to void for silencing unused variable warning don't we? Looks a bit odd here imo