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