Link time thinLTO spawns pthreads to parallelize optimization and codegen of the input bitcode files.
On AIX, the pthread's stack size limit is ~192k for 64-bit programs.
If std::optional<unsigned> llvm::thread::DefaultStackSize is initialized, then its value is used on a call to pthread_attr_setstacksize before pthread_create occurs.
We think increasing the default thread stack size limit in llvm on AIX to 4mb make sense.
Minor nit to have the comment explaining why like Darwin does above.