Skip to content

Commit d1939de

Browse files
igorban-inteligcbot
authored andcommitted
Exclude ctlz intrinsic translation in OCLBiF
.
1 parent 00132b9 commit d1939de

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

IGC/VectorCompiler/lib/GenXOpts/CMTrans/GenXImportOCLBiF.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -205,26 +205,6 @@ void BIConvert::runOnModule(Module &M) {
205205
if (id == Intrinsic::lifetime_start || id == Intrinsic::lifetime_end) {
206206
ListDelete.push_back(InstCall);
207207
continue;
208-
} else if (id == Intrinsic::ctlz) {
209-
// convert this to genx_ldz, but genx_lzd only support 32-bit input
210-
auto Src = InstCall->getOperand(0);
211-
auto SrcTy = Src->getType();
212-
IGC_ASSERT(SrcTy->isIntegerTy());
213-
IGC_ASSERT(SrcTy->getPrimitiveSizeInBits() == 32);
214-
Type *tys[1];
215-
SmallVector<llvm::Value *, 1> args;
216-
// build type-list for the 1st intrinsic
217-
tys[0] = SrcTy;
218-
// build argument list for the 1st intrinsic
219-
args.push_back(Src);
220-
Function *IntrinFunc = GenXIntrinsic::getAnyDeclaration(
221-
&M, GenXIntrinsic::genx_lzd, tys);
222-
Instruction *IntrinCall =
223-
CallInst::Create(IntrinFunc, args, InstCall->getName(), InstCall);
224-
IntrinCall->setDebugLoc(InstCall->getDebugLoc());
225-
InstCall->replaceAllUsesWith(IntrinCall);
226-
ListDelete.push_back(InstCall);
227-
continue;
228208
}
229209

230210
StringRef CalleeName = callee->getName();

0 commit comments

Comments
 (0)