mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
fix some serious miscompiles on ia64, alpha, and ppc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51679c430f
commit
fd8d389ede
@ -798,7 +798,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
||||
if (N1.getOpcode() == ISD::SETCC &&
|
||||
TLI.getSetCCResultContents() == TargetLowering::ZeroOrOneSetCCResult)
|
||||
if (C2 & 1)
|
||||
return getNode(ISD::AND, VT, N1.getOperand(1), getConstant(1, VT));
|
||||
return getNode(ISD::AND, VT, N1, getConstant(1, VT));
|
||||
else
|
||||
return getConstant(0, VT);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user