mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-19 03:29:22 +00:00
Fix variable shadowing issue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28922 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c08f902bb7
commit
529c233498
@ -741,7 +741,7 @@ SDOperand PPCDAGToDAGISel::SelectCC(SDOperand LHS, SDOperand RHS,
|
|||||||
unsigned Opc;
|
unsigned Opc;
|
||||||
|
|
||||||
if (LHS.getValueType() == MVT::i32) {
|
if (LHS.getValueType() == MVT::i32) {
|
||||||
unsigned Imm, Opc;
|
unsigned Imm;
|
||||||
if (ISD::isUnsignedIntSetCC(CC)) {
|
if (ISD::isUnsignedIntSetCC(CC)) {
|
||||||
if (isInt32Immediate(RHS, Imm) && isUInt16(Imm))
|
if (isInt32Immediate(RHS, Imm) && isUInt16(Imm))
|
||||||
return SDOperand(CurDAG->getTargetNode(PPC::CMPLWI, MVT::i32, LHS,
|
return SDOperand(CurDAG->getTargetNode(PPC::CMPLWI, MVT::i32, LHS,
|
||||||
@ -757,7 +757,6 @@ SDOperand PPCDAGToDAGISel::SelectCC(SDOperand LHS, SDOperand RHS,
|
|||||||
}
|
}
|
||||||
} else if (LHS.getValueType() == MVT::i64) {
|
} else if (LHS.getValueType() == MVT::i64) {
|
||||||
uint64_t Imm;
|
uint64_t Imm;
|
||||||
unsigned Opc;
|
|
||||||
if (ISD::isUnsignedIntSetCC(CC)) {
|
if (ISD::isUnsignedIntSetCC(CC)) {
|
||||||
if (isInt64Immediate(RHS.Val, Imm) && isUInt16(Imm))
|
if (isInt64Immediate(RHS.Val, Imm) && isUInt16(Imm))
|
||||||
return SDOperand(CurDAG->getTargetNode(PPC::CMPLDI, MVT::i64, LHS,
|
return SDOperand(CurDAG->getTargetNode(PPC::CMPLDI, MVT::i64, LHS,
|
||||||
|
Loading…
Reference in New Issue
Block a user