OpcodeDispatcher: Remove redundant moves from rorx

By allowing junk in the upper bits, we can avoid an unnecessary move,
since we'll be ignoring them in the following ROR instruction anyway.
This commit is contained in:
Lioncache committed 2023-10-15 17:05:15 +02:00
1 parent c612fa8f2f
commit b27bf43901
2 files changed
+5 -5

No files matched your search

@@ -2451,7 +2451,8 @@ void OpDispatchBuilder::RORX(OpcodeArgs) {
return;
}
auto* Src = LoadSource(GPRClass, Op, Op->Src[0], Op->Flags, -1);
auto* Src = LoadSource(GPRClass, Op, Op->Src[0], Op->Flags, -1, true, false,
MemoryAccessType::ACCESS_DEFAULT, true);
auto* Result = Src;
if (DoRotation) [[likely]] {
Result = _Ror(OpSizeFromSrc(Op), Src, _Constant(Amount));