mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Use APInt instead of zext value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97631 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f85eff76b2
commit
32f9eb2bc3
@ -2029,7 +2029,7 @@ SDValue DAGCombiner::visitOR(SDNode *N) {
|
||||
if (N1C && N0.getOpcode() == ISD::AND && N0.getNode()->hasOneUse() &&
|
||||
isa<ConstantSDNode>(N0.getOperand(1))) {
|
||||
ConstantSDNode *C1 = cast<ConstantSDNode>(N0.getOperand(1));
|
||||
if ((C1->getZExtValue() & N1C->getZExtValue()) != 0)
|
||||
if ((C1->getAPIntValue() & N1C->getAPIntValue()) != 0)
|
||||
return DAG.getNode(ISD::AND, N->getDebugLoc(), VT,
|
||||
DAG.getNode(ISD::OR, N0.getDebugLoc(), VT,
|
||||
N0.getOperand(0), N1),
|
||||
|
Loading…
x
Reference in New Issue
Block a user