Skip to content

Commit

Permalink
xe: jit: gemm: avoid unnecessary emul
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoursler committed Feb 7, 2025
1 parent f42d9e7 commit ba83c47
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gpu/intel/jit/gemm/generator/pieces/common.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -589,9 +589,8 @@ void BLASKernelGenerator<hw>::calcIncrement(LDIncrements &increments, Subregiste
else
scaled = SubregisterPair(state.ra.alloc_sub(increments.type, getHint(HintType::LongTerm, strategy)));

int nr = strategy.avoidIncConflicts ? 2 : 1;
for (int i = 0; i < nr; i++)
emulConstant(1, scaled.getReg(i), base, scale, strategy, state);
emulConstant(1, scaled.getReg(0), base, scale, strategy, state);
if(scaled.isDuplicated()) emov(1, scaled.getReg(1), scaled.getReg(0), strategy, state);

increments.push_back(std::make_pair(scale, scaled));
}
Expand Down

0 comments on commit ba83c47

Please sign in to comment.