mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 14:30:27 +02:00
Fix IRTEMP clash bug. Add more cases to the constant propagation pass.
This commit is contained in:
1 parent
aae32bd929
commit
14df39d7c9
9 files changed
+94
-29
No files matched your search
@@ -26,10 +26,19 @@ IRRegCache::IRRegCache(IRWriter *ir) : ir_(ir) {
|
||||
|
||||
void IRRegCache::FlushAll() {
|
||||
for (int i = 0; i < TOTAL_MAPPABLE_MIPSREGS; i++) {
|
||||
Flush(i);
|
||||
if (i < IRTEMP_0)
|
||||
Flush(i);
|
||||
}
|
||||
}
|
||||
|
||||
void IRRegCache::MapIn(int rd) {
|
||||
Flush(rd);
|
||||
}
|
||||
|
||||
void IRRegCache::MapDirty(int rd) {
|
||||
Discard(rd);
|
||||
}
|
||||
|
||||
void IRRegCache::MapInIn(int rs, int rt) {
|
||||
Flush(rs);
|
||||
Flush(rt);
|
||||
|
||||
Reference in new issue
Block a user