IR_X86: Simplify trinary expressions

This commit is contained in:
MerryMage 2017-04-15 10:35:01 +01:00
parent 8d4be36963
commit 6d8738e6e4
1 changed files with 2 additions and 2 deletions

View File

@ -788,7 +788,7 @@ static void DoWriteCode(IRBuilder* ibuild, JitIL* Jit, u32 exitAddress)
{ {
InstLoc I = ibuild->ReadBackward(); InstLoc I = ibuild->ReadBackward();
unsigned int op = getOpcode(*I); unsigned int op = getOpcode(*I);
bool thisUsed = regReadUse(RI, I) ? true : false; bool thisUsed = regReadUse(RI, I) != 0;
switch (op) switch (op)
{ {
@ -962,7 +962,7 @@ static void DoWriteCode(IRBuilder* ibuild, JitIL* Jit, u32 exitAddress)
for (unsigned i = 0; i != RI.IInfo.size(); i++) for (unsigned i = 0; i != RI.IInfo.size(); i++)
{ {
InstLoc I = ibuild->ReadForward(); InstLoc I = ibuild->ReadForward();
bool thisUsed = regReadUse(RI, I) ? true : false; bool thisUsed = regReadUse(RI, I) != 0;
if (thisUsed) if (thisUsed)
{ {
// Needed for IR Writer // Needed for IR Writer