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
674674 bool isHalfGRFReturn (CVariable* dst, SIMDMode simdMode);
675675
676676 void emitFeedbackEnable ();
677-
678677};
679678
680679} // namespace IGC
Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments