mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-06 22:47:06 +00:00
Merge pull request #759 from phire/fix_mul_op
Fix power of 2 OP_MUL optimisation (Fixes Geekbench result upload)
This commit is contained in:
commit
b40131ede3
@ -712,7 +712,9 @@ bool ConstProp::Run(IREmitter *IREmit) {
|
||||
uint64_t amt = __builtin_ctzl(Constant2);
|
||||
IREmit->SetWriteCursor(CodeNode);
|
||||
auto shift = IREmit->_Lshl(CurrentIR.GetNode(Op->Header.Args[0]), IREmit->_Constant(amt));
|
||||
shift.first->Header.Size = IROp->Size; // force Lshl to be the same size as the original Mul
|
||||
IREmit->ReplaceAllUsesWith(CodeNode, shift);
|
||||
Changed = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user