Skip to content

Commit 988e2fb

Browse files
jgu222sys_zuul
authored and
sys_zuul
committed
[Autobackout][FuncReg]Revert of change: ecb4ac2
Internal fixing and refactoring Change-Id: Iacd6fa6e663da73f1659649f282d1cc80c05f707
1 parent cf6b7b9 commit 988e2fb

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,6 @@ class EmitPass : public llvm::FunctionPass
674674
bool isHalfGRFReturn(CVariable* dst, SIMDMode simdMode);
675675

676676
void emitFeedbackEnable();
677-
678677
};
679678

680679
} // namespace IGC

IGC/Compiler/CISACodeGen/VectorProcess.cpp

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ bool VectorProcess::reLayoutLoadStore(Instruction* Inst)
201201

202202
Value* Ptr = nullptr;
203203
Type* Ty = nullptr;
204+
204205
if (nullptr != LI)
205206
{
206207
Ptr = LI->getPointerOperand();
@@ -253,8 +254,8 @@ bool VectorProcess::reLayoutLoadStore(Instruction* Inst)
253254

254255
//
255256
// Assumption:
256-
// 1. if the size of vector < 4 bytes, it must be 1 or 2 bytes (never 3);
257-
// 2. if the size of vector >= 4 bytes, it must be multiple of DW
257+
// 1. if vector size < 4 bytes, it must be 1 or 2 bytes (never 3);
258+
// 2. if vector size >= 4 bytes, it must be multiple of DW
258259
// Those 2 assumption are guaranteed by VectorPreProcess.
259260
//
260261
// So far, we are using A32 untyped and byte scattered messages,
@@ -300,14 +301,15 @@ bool VectorProcess::reLayoutLoadStore(Instruction* Inst)
300301
{
301302
align = LI->getAlignment();
302303
}
303-
else if (SI)
304-
{
305-
align = SI->getAlignment();
306-
}
307304
else
308-
{
309-
align = 1;
310-
}
305+
if (SI)
306+
{
307+
align = SI->getAlignment();
308+
}
309+
else
310+
{
311+
align = 1;
312+
}
311313

312314
bool useQW = useA64 && ((TBytes % 8) == 0) &&
313315
((has_8Byte_A64_BS && align < 4) || (eTyBytes == 8U && align >= 8U));

0 commit comments

Comments
 (0)