mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 13:00:41 +02:00
FEXCore: Switch constant emission to default to NoPad
Most constants don't need to be padded for relocations. So now that these have all been audited, switch to defaulting to NoPad to reduce verbosity. The number of constant that need to be explicitly padded are now marked and with all the prior changes, this allows bisecting if something has gone wrong.
This commit is contained in:
22 files changed
+264
-276
No files matched your search
@@ -387,11 +387,11 @@ inline void X87StackOptimization::Reset() {
|
||||
inline Ref X87StackOptimization::GetConstant(ssize_t Offset) {
|
||||
if (Offset < 0 || Offset >= X87StackOptimization::ConstantPool.size()) {
|
||||
// not dealt by pool
|
||||
return IREmit->_Constant(Offset, ConstPad::NoPad);
|
||||
return IREmit->_Constant(Offset);
|
||||
}
|
||||
if (ConstantPool[Offset] == nullptr) {
|
||||
|
||||
ConstantPool[Offset] = IREmit->_Constant(Offset, ConstPad::NoPad);
|
||||
ConstantPool[Offset] = IREmit->_Constant(Offset);
|
||||
}
|
||||
return ConstantPool[Offset];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user