Optimized GetScalarNZM, add limit to how far it can recurse. Add rlwinm elimination rule

This commit is contained in:
chss95cs@gmail.com
2022-07-14 14:32:14 -07:00
parent 1d00372e6b
commit 71c5f8f0fa
4 changed files with 341 additions and 90 deletions

View File

@@ -577,6 +577,7 @@ class Value {
void ByteSwap();
void CountLeadingZeros(const Value* other);
bool Compare(Opcode opcode, Value* other);
hir::Instr* GetDefSkipAssigns();
private:
static bool CompareInt8(Opcode opcode, Value* a, Value* b);