Skip to content

Commit ef605b9

Browse files
vsemenov368igcbot
authored andcommitted
Fix LSC atomic BIF removal in VC
Unused LSC atomic built-in functions were not removed correctly.
1 parent fb73ef5 commit ef605b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenXBiFPrepare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ bool GenXBiFPrepare::isNeededForTarget(const Function &F,
153153
if (IsFpCvt && !ST.emulateLongLong())
154154
return false;
155155

156-
bool Is64bit = IsDouble && F.getReturnType()->getScalarType()->isIntegerTy(64);
156+
bool Is64bit = IsDouble || F.getReturnType()->getScalarType()->isIntegerTy(64);
157157

158158
if (!ST.hasLocalIntegerCas64() && Is64bit && Name.startswith("atomic_slm"))
159159
return false;

0 commit comments

Comments
 (0)