mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
Fix a powerpc crash on CodeGen/Generic/llvm-ct-intrinsics.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
05b57433e6
commit
a179ab3016
@ -724,7 +724,7 @@ SDOperand DAGCombiner::visitAND(SDNode *N) {
|
|||||||
return DAG.getNode(ISD::AND, VT, N0.getOperand(0), N1);
|
return DAG.getNode(ISD::AND, VT, N0.getOperand(0), N1);
|
||||||
}
|
}
|
||||||
// fold (and (or x, 0xFFFF), 0xFF) -> 0xFF
|
// fold (and (or x, 0xFFFF), 0xFF) -> 0xFF
|
||||||
if (N0.getOpcode() == ISD::OR)
|
if (N0.getOpcode() == ISD::OR && N1C)
|
||||||
if (ConstantSDNode *ORI = dyn_cast<ConstantSDNode>(N0.getOperand(1)))
|
if (ConstantSDNode *ORI = dyn_cast<ConstantSDNode>(N0.getOperand(1)))
|
||||||
if ((ORI->getValue() & N1C->getValue()) == N1C->getValue())
|
if ((ORI->getValue() & N1C->getValue()) == N1C->getValue())
|
||||||
return N1;
|
return N1;
|
||||||
|
Loading…
Reference in New Issue
Block a user