eZWALT wrote:

It’s true that NumGeneratedLoops is used throughout the existing OpenMP loop 
transformation infrastructure. While in some cases its usage could potentially 
be replaced by NumGeneratedLoopNests (especially when only checking for values 
like 0 or 1), the two variables convey distinct semantic information.

NumGeneratedLoops refers to the number of individual loops produced, while 
NumGeneratedLoopNests captures the structure of nested loops. For current and 
future transformations, having access to both could be important for 
representing complex constructs accurately.

Removing NumGeneratedLoops would require changes across the loop 
transformations logic it's not clear the benefit would justify that cost, 
particularly given the potential utility of retaining this semantic 
distinction.I’m not 100% certain all current transformations depend on that 
level of detail, but I believe it’s valuable to preserve until proven otherwise.

https://github.com/llvm/llvm-project/pull/140532
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to