OpcodeDispatcher: Optimize 32-bit bswap

Removes a redundant move, making it optimal now.
This commit is contained in:
Ryan Houdek committed 2023-09-12 16:19:10 -07:00
1 parent 90f7937146
commit c362d3a9d8
1 file changed
+1 -1
@@ -4337,7 +4337,7 @@ void OpDispatchBuilder::BSWAPOp(OpcodeArgs) {
Dest = _Constant(0);
}
else {
Dest = LoadSource(GPRClass, Op, Op->Dest, Op->Flags, -1);
Dest = LoadSource_WithOpSize(GPRClass, Op, Op->Dest, CTX->GetGPRSize(), Op->Flags, -1);
Dest = _Rev(IR::SizeToOpSize(Size), Dest);
}
StoreResult(GPRClass, Op, Dest, -1);