[llvm] [PPC] Replace PPCMergeStringPool with GlobalMerge for Linux (PR #114850)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 7 08:24:24 PST 2024
================
@@ -632,10 +633,13 @@ void GlobalMergeImpl::setMustKeepGlobalVariables(Module &M) {
for (Function &F : M) {
for (BasicBlock &BB : F) {
Instruction *Pad = BB.getFirstNonPHI();
- if (!Pad->isEHPad())
+ auto *II = dyn_cast<IntrinsicInst>(Pad);
+ if (!Pad->isEHPad() &&
+ !(II && II->getIntrinsicID() == Intrinsic::eh_typeid_for))
continue;
- // Keep globals used by landingpads and catchpads.
+ // Keep globals used by landingpads, catchpads,
+ // or instrinsics that require a plain global.
----------------
nikic wrote:
```suggestion
// or intrinsics that require a plain global.
```
https://github.com/llvm/llvm-project/pull/114850
More information about the llvm-commits
mailing list