mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
x87StackOptimizationPass: Pass by const reference in setTop()
Avoids redundant copies. Just a minor codegen saving.
This commit is contained in:
1 parent
a652a5811b
commit
19550c5417
1 file changed
+1
-1
@@ -92,7 +92,7 @@ public:
|
||||
return buffer[Offset];
|
||||
}
|
||||
|
||||
void setTop(T Value, size_t Offset = 0) {
|
||||
void setTop(const T& Value, size_t Offset = 0) {
|
||||
buffer[Offset] = {StackSlot::VALID, Value};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user