Reapply "[SimplifyCFG] Reuse function comdat for switch lookup table" (#193229)
This repplies https://github.com/llvm/llvm-project/pull/190995, after
https://github.com/llvm/llvm-project/pull/192477 landed to fix the
linker errors in the stage2 build caused by wrong merges of the comdat
constants generated by this patch.