MaskRay wrote:

> I feel like you could have pretty easily achieved your stated goals of 
> removing the goto and reduced nesting by just extracting helper functions in 
> a few places, like `getLimitOffset`, instead of rewriting the entire 
> algorithm.

Thanks for the review. The original single-loop structure inherently needed 
extra variables due to interleaving span detection and merging. The complexity 
could only be avoided by switching to an explicit two-pass structure.

>  You've also removed a bunch of comments. It's hard for me to call this a 
> clear improvement.

 This was a real oversight. I've now restored them.

https://github.com/llvm/llvm-project/pull/182814
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to