File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -170,8 +170,9 @@ void PPCMergeStringPool::collectCandidateConstants(Module &M) {
170
170
LLVM_DEBUG (dbgs () << " hasInitializer() " << Global.hasInitializer ()
171
171
<< " \n " );
172
172
173
- // We can only pool constants.
174
- if (!Global.isConstant () || !Global.hasInitializer ())
173
+ // We can only pool non-thread-local constants.
174
+ if (!Global.isConstant () || !Global.hasInitializer () ||
175
+ Global.isThreadLocal ())
175
176
continue ;
176
177
177
178
// If a global constant has a section we do not try to pool it because
@@ -215,11 +216,6 @@ void PPCMergeStringPool::collectCandidateConstants(Module &M) {
215
216
Global.getLinkage () != GlobalValue::InternalLinkage)
216
217
continue ;
217
218
218
- // Do not pool thread-local constants, as the pooled strings can contain
219
- // non-thread-local constants, and these should not be mixed together.
220
- if (Global.isThreadLocal ())
221
- continue ;
222
-
223
219
LLVM_DEBUG (dbgs () << " Constant data of Global: " );
224
220
LLVM_DEBUG (ConstData->dump ());
225
221
LLVM_DEBUG (dbgs () << " \n\n " );
You can’t perform that action at this time.
0 commit comments