File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -674,7 +674,6 @@ class EmitPass : public llvm::FunctionPass
674
674
bool isHalfGRFReturn (CVariable* dst, SIMDMode simdMode);
675
675
676
676
void emitFeedbackEnable ();
677
-
678
677
};
679
678
680
679
} // namespace IGC
Original file line number Diff line number Diff line change @@ -201,6 +201,7 @@ bool VectorProcess::reLayoutLoadStore(Instruction* Inst)
201
201
202
202
Value* Ptr = nullptr ;
203
203
Type* Ty = nullptr ;
204
+
204
205
if (nullptr != LI)
205
206
{
206
207
Ptr = LI->getPointerOperand ();
@@ -253,8 +254,8 @@ bool VectorProcess::reLayoutLoadStore(Instruction* Inst)
253
254
254
255
//
255
256
// 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
258
259
// Those 2 assumption are guaranteed by VectorPreProcess.
259
260
//
260
261
// So far, we are using A32 untyped and byte scattered messages,
@@ -300,14 +301,15 @@ bool VectorProcess::reLayoutLoadStore(Instruction* Inst)
300
301
{
301
302
align = LI->getAlignment ();
302
303
}
303
- else if (SI)
304
- {
305
- align = SI->getAlignment ();
306
- }
307
304
else
308
- {
309
- align = 1 ;
310
- }
305
+ if (SI)
306
+ {
307
+ align = SI->getAlignment ();
308
+ }
309
+ else
310
+ {
311
+ align = 1 ;
312
+ }
311
313
312
314
bool useQW = useA64 && ((TBytes % 8 ) == 0 ) &&
313
315
((has_8Byte_A64_BS && align < 4 ) || (eTyBytes == 8U && align >= 8U ));
You can’t perform that action at this time.
0 commit comments