mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 11:01:01 +02:00
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:
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));
|
||||
|
||||
Reference in new issue
Block a user