mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Eliminate unnecessary uses of getZExtValue().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106279 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -737,7 +737,7 @@ void SparcTargetLowering::computeMaskedBitsForTargetNode(const SDValue Op,
|
||||
static void LookThroughSetCC(SDValue &LHS, SDValue &RHS,
|
||||
ISD::CondCode CC, unsigned &SPCC) {
|
||||
if (isa<ConstantSDNode>(RHS) &&
|
||||
cast<ConstantSDNode>(RHS)->getZExtValue() == 0 &&
|
||||
cast<ConstantSDNode>(RHS)->isNullValue() &&
|
||||
CC == ISD::SETNE &&
|
||||
((LHS.getOpcode() == SPISD::SELECT_ICC &&
|
||||
LHS.getOperand(3).getOpcode() == SPISD::CMPICC) ||
|
||||
@@ -745,8 +745,8 @@ static void LookThroughSetCC(SDValue &LHS, SDValue &RHS,
|
||||
LHS.getOperand(3).getOpcode() == SPISD::CMPFCC)) &&
|
||||
isa<ConstantSDNode>(LHS.getOperand(0)) &&
|
||||
isa<ConstantSDNode>(LHS.getOperand(1)) &&
|
||||
cast<ConstantSDNode>(LHS.getOperand(0))->getZExtValue() == 1 &&
|
||||
cast<ConstantSDNode>(LHS.getOperand(1))->getZExtValue() == 0) {
|
||||
cast<ConstantSDNode>(LHS.getOperand(0))->isOne() &&
|
||||
cast<ConstantSDNode>(LHS.getOperand(1))->isNullValue()) {
|
||||
SDValue CMPCC = LHS.getOperand(3);
|
||||
SPCC = cast<ConstantSDNode>(LHS.getOperand(2))->getZExtValue();
|
||||
LHS = CMPCC.getOperand(0);
|
||||
|
Reference in New Issue
Block a user