mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Correct swapped arguments to getConstant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42824 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2068,7 +2068,7 @@ SDOperand DAGCombiner::visitXOR(SDNode *N) {
|
|||||||
N0.Val->hasOneUse() && isSetCCEquivalent(N0.getOperand(0), LHS, RHS, CC)){
|
N0.Val->hasOneUse() && isSetCCEquivalent(N0.getOperand(0), LHS, RHS, CC)){
|
||||||
SDOperand V = N0.getOperand(0);
|
SDOperand V = N0.getOperand(0);
|
||||||
V = DAG.getNode(ISD::XOR, V.getValueType(), V,
|
V = DAG.getNode(ISD::XOR, V.getValueType(), V,
|
||||||
DAG.getConstant(V.getValueType(), 1));
|
DAG.getConstant(1, V.getValueType()));
|
||||||
AddToWorkList(V.Val);
|
AddToWorkList(V.Val);
|
||||||
return DAG.getNode(ISD::ZERO_EXTEND, VT, V);
|
return DAG.getNode(ISD::ZERO_EXTEND, VT, V);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user