[llvm-branch-commits] [llvm] [PowerPC][GlobalMerge] Enable GlobalMerge by default on AIX (PR #101226)
Chen Zheng via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Aug 4 22:37:08 PDT 2024
================
@@ -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
More information about the llvm-branch-commits
mailing list