Skip to content

Commit 9f73e67

Browse files
authored
Remove unused function 'replaceAggregateTypeOfCallUsages'
1 parent ff09962 commit 9f73e67

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

llvm/lib/Target/DirectX/DXILOpLowering.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -364,25 +364,6 @@ class OpLowerer {
364364
return lowerToBindAndAnnotateHandle(F);
365365
}
366366

367-
Error replaceAggregateTypeOfCallUsages(CallInst *Intrin, CallInst *Op) {
368-
for (Use &U : make_early_inc_range(Intrin->uses())) {
369-
if (auto *EVI = dyn_cast<ExtractValueInst>(U.getUser())) {
370-
EVI->setOperand(0, Op);
371-
} else if (auto *IVI = dyn_cast<InsertValueInst>(U.getUser())) {
372-
IVI->setOperand(0, Op);
373-
} else {
374-
return make_error<StringError>(
375-
(Intrin->getCalledFunction()->getName() +
376-
" use is not a ExtractValueInst or InsertValueInst"),
377-
inconvertibleErrorCode());
378-
}
379-
}
380-
381-
Intrin->eraseFromParent();
382-
383-
return Error::success();
384-
}
385-
386367
/// Replace uses of \c Intrin with the values in the `dx.ResRet` of \c Op.
387368
/// Since we expect to be post-scalarization, make an effort to avoid vectors.
388369
Error replaceResRetUses(CallInst *Intrin, CallInst *Op, bool HasCheckBit) {

0 commit comments

Comments
 (0)