mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 08:14:45 +02:00
14 lines
298 B
C++
14 lines
298 B
C++
#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;
|
|
}
|
|
}
|
|
} |