mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-23 04:16:42 +00:00
fix 101 regressions
llvm-svn: 21063
This commit is contained in:
parent
6b3090447d
commit
4be5502eb4
@ -1591,7 +1591,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
||||
//Int SetCC -> Select
|
||||
//Dropping the CC is only useful if we are comparing to 0
|
||||
if(SetCC->getOperand(1).getOpcode() == ISD::Constant &&
|
||||
cast<ConstantSDNode>(SetCC->getOperand(0))->getValue() == 0)
|
||||
cast<ConstantSDNode>(SetCC->getOperand(1))->getValue() == 0)
|
||||
{
|
||||
bool useI = (SetCC->getOperand(1).getOpcode() == ISD::Constant &&
|
||||
cast<ConstantSDNode>(SetCC->getOperand(1))->getValue() <= 255);
|
||||
@ -1617,8 +1617,8 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
||||
.addReg(SelectExpr(SetCC->getOperand(1)));
|
||||
return Result;
|
||||
}
|
||||
if(SetCC->getOperand(1).getOpcode() == ISD::Constant &&
|
||||
cast<ConstantSDNode>(SetCC->getOperand(1))->getValue() == 0)
|
||||
if(SetCC->getOperand(0).getOpcode() == ISD::Constant &&
|
||||
cast<ConstantSDNode>(SetCC->getOperand(0))->getValue() == 0)
|
||||
{
|
||||
bool useI = (SetCC->getOperand(0).getOpcode() == ISD::Constant &&
|
||||
cast<ConstantSDNode>(SetCC->getOperand(0))->getValue() <= 255);
|
||||
|
Loading…
x
Reference in New Issue
Block a user