Skip to content

Commit 88cca8b

Browse files
jaladreipsigcbot
authored andcommitted
Fix the getLSCAtomicBitWidth function
Fix the getLSCAtomicBitWidth function
1 parent 84dad2d commit 88cca8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23914,7 +23914,7 @@ void EmitPass::emitLSCFence(llvm::GenIntrinsicInst* inst)
2391423914

2391523915
unsigned short getLSCAtomicBitWidth(llvm::GenIntrinsicInst* inst)
2391623916
{
23917-
llvm::StringRef name = inst->getName();
23917+
llvm::StringRef name = inst->getCalledFunction()->getName();
2391823918
unsigned short bitwidth = 0;
2391923919
if (name.startswith("llvm.genx.GenISA.LSCAtomicInts.i64") || name.startswith("llvm.genx.GenISA.LSCAtomicInts.u64")
2392023920
|| name.startswith("llvm.genx.GenISA.LSCAtomicFP64"))

0 commit comments

Comments
 (0)