IR_X86: Simplify trinary expressions
This commit is contained in:
parent
8d4be36963
commit
6d8738e6e4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue