x87StackOptimizationPass: Pass by const reference in setTop()

Avoids redundant copies. Just a minor codegen saving.
This commit is contained in:
LC committed 2026-07-23 02:17:02 -04:00
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};
}