File tree Expand file tree Collapse file tree 3 files changed +2
-23
lines changed Expand file tree Collapse file tree 3 files changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -736,11 +736,8 @@ namespace IGC {
736
736
// which is not really a local-code-motion
737
737
if (def->getNextNode () != use && !isa<PHINode>(use))
738
738
{
739
- if (!def->getMetadata (" implicitGlobalID" ))
740
- {
741
- def->moveBefore (use);
742
- madeChange = true ;
743
- }
739
+ def->moveBefore (use);
740
+ madeChange = true ;
744
741
}
745
742
localInstSet.erase (def);
746
743
}
Original file line number Diff line number Diff line change @@ -92,8 +92,6 @@ void initializeInsertGenericPtrArithmeticMetadataPass(llvm::PassRegistry&);
92
92
void initializeImageFuncResolutionPass (llvm::PassRegistry&);
93
93
void initializeImageFuncsAnalysisPass (llvm::PassRegistry&);
94
94
void initializeImage3dToImage2darrayPass (llvm::PassRegistry&);
95
- void initializeImplicitGlobalIdPass (llvm::PassRegistry&);
96
- void initializeCleanImplicitIdsPass (llvm::PassRegistry&);
97
95
void initializeInlineLocalsResolutionPass (llvm::PassRegistry&);
98
96
void initializeInlineUnmaskedFunctionsPassPass (llvm::PassRegistry&);
99
97
void initializeInsertBranchOptPass (llvm::PassRegistry&);
@@ -239,7 +237,6 @@ void initializeDebugInfoPassPass(llvm::PassRegistry&);
239
237
void initializeIGCLivenessAnalysisPass (llvm::PassRegistry&);
240
238
void initializePromoteConstantStructsPass (llvm::PassRegistry&);
241
239
void initializeLowerInvokeSIMDPass (llvm::PassRegistry&);
242
- void initializeImplicitGIDRestoringPass (llvm::PassRegistry&);
243
240
void initializeRemoveCodeAssumptionsPass (llvm::PassRegistry&);
244
241
void initializePromoteBoolsPass (llvm::PassRegistry&);
245
242
void initializeResolveConstExprCallsPass (llvm::PassRegistry&);
Original file line number Diff line number Diff line change @@ -160,21 +160,6 @@ bool ScalarizeFunction::runOnFunction(Function& F)
160
160
if (Value * val = dyn_cast<Value>(*index))
161
161
{
162
162
UndefValue* undefVal = UndefValue::get ((*index)->getType ());
163
-
164
- if (MDNode* pEIMD = (*index)->getMetadata (" implicitGlobalID" ))
165
- {
166
- // Compute thread and group identification instructions must have 'Output' attribute
167
- // added later during compilation. The implicitGlobalID metadata attached to this
168
- // instruction must be assigned to a new instruction, which replaces this instruction.
169
- // Unfortunatelly, replaceAllUsesWith() will not ensure such propagation.
170
- Instruction* pNewInst = dyn_cast_or_null<llvm::Instruction>(undefVal);
171
- if (pNewInst)
172
- {
173
- IGC_ASSERT_MESSAGE (pNewInst, " Missing implicit global ID instruction" );
174
- Instruction* instr = dyn_cast<Instruction>(*index);
175
- pNewInst->copyMetadata (*instr);
176
- }
177
- }
178
163
(val)->replaceAllUsesWith (undefVal);
179
164
}
180
165
IGC_ASSERT_MESSAGE ((*index)->use_empty (), " Unable to remove used instruction" );
You can’t perform that action at this time.
0 commit comments