Skip to content

Commit bf54626

Browse files
itsimbaligcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: 1e4cf94
When promoting arrays to registers wrong assumption regarding fp64 and int64 is made.
1 parent 7d5a1e8 commit bf54626

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

IGC/Compiler/CISACodeGen/LowerGEPForPrivMem.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@ static void GetAllocaLiverange(Instruction* I, unsigned int& liverangeStart, uns
258258

259259
bool LowerGEPForPrivMem::IsNativeType(Type* type)
260260
{
261+
if ((type->isDoubleTy() && m_ctx->platform.hasNoFP64Inst()) ||
262+
(type->isIntegerTy(64) && m_ctx->platform.hasNoFullI64Support()))
263+
{
264+
return false;
265+
}
261266
return true;
262267
}
263268

0 commit comments

Comments
 (0)