mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 18:49:51 +01:00
It's kind of starting to run
This commit is contained in:
1 parent
d399c4a470
commit
4acf85aa06
17 files changed
+309
-80
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#include "Core/MIPS/IR/IRPassSimplify.h"
|
||||
|
||||
void SimplifyInPlace(IRInst *inst, int count, const u32 *constPool) {
|
||||
for (int i = 0; i < count; i++) {
|
||||
switch (inst[i].op) {
|
||||
case IROp::AddConst:
|
||||
if (constPool[inst[i].src2] == 0)
|
||||
inst[i].op = IROp::Mov;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user