================ @@ -500,7 +500,10 @@ void PPCPassConfig::addIRPasses() { } bool PPCPassConfig::addPreISel() { - if (EnableGlobalMerge) + if ((EnableGlobalMerge.getNumOccurrences() > 0) + ? EnableGlobalMerge + : (TM->getTargetTriple().isOSAIX() && + getOptLevel() != CodeGenOptLevel::None)) ---------------- chenzheng1030 wrote:
Keep the check for `EnableGlobalMerge.getNumOccurrences()` looks correct to me : ) https://github.com/llvm/llvm-project/pull/101226 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits