mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 13:00:15 +02:00
RegisterAllocationPass: simplify an expression
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
1 parent
059d980c33
commit
c16db2db4a
1 file changed
+2
-9
@@ -103,15 +103,8 @@ private:
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (IR->GetOp<IROp_Header>(Arg)->Op) {
|
||||
case OP_INLINECONSTANT:
|
||||
case OP_INLINEENTRYPOINTOFFSET:
|
||||
case OP_IRHEADER: return false;
|
||||
|
||||
case OP_SPILLREGISTER: LOGMAN_MSG_A_FMT("should not be seen"); return false;
|
||||
|
||||
default: return true;
|
||||
}
|
||||
auto Op = IR->GetOp<IROp_Header>(Arg)->Op;
|
||||
return Op != OP_INLINECONSTANT && Op != OP_INLINEENTRYPOINTOFFSET;
|
||||
};
|
||||
|
||||
RegisterClass* GetClass(PhysicalRegister Reg) {
|
||||
|
||||
Reference in new issue
Block a user