It's kind of starting to run

This commit is contained in:
Henrik Rydgard committed 2016-05-07 17:37:19 +02:00
1 parent d399c4a470
commit 4acf85aa06
17 files changed
+309 -80

No files matched your search

+14
View File
@@ -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;
}
}
}