Skip to content

Commit 8d912db

Browse files
bcheng0127igcbot
authored andcommitted
new acc restriction bug fix
In the new rules, operand should use original region instead of the stride 1 region.
1 parent 2f7f670 commit 8d912db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visa/Passes/AccSubstitution.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ bool AccSubPass::replaceDstWithAcc(G4_INST *inst, int accNum) {
791791
if (kernel.fg.builder->removedAccRestrictionsAsGRF()) {
792792
accSrc = builder.createSrcRegRegion(
793793
oldSrc->getModifier(), Direct, accReg, (short)accNum, 0,
794-
builder.getRegionStride1(), oldSrc->getType());
794+
oldSrc->getRegion(), oldSrc->getType());
795795
} else {
796796
accSrc = builder.createSrcRegRegion(
797797
oldSrc->getModifier(), Direct, accReg, (short)accNum, 0,

0 commit comments

Comments
 (0)