mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-18 14:31:27 +00:00
Fix CodeGen/PowerPC/2006-12-07-SelectCrash.ll on PPC64
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32336 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d4fca27e59
commit
555d8d6f4b
@ -3755,7 +3755,10 @@ SDOperand DAGCombiner::SimplifySelectCC(SDOperand N0, SDOperand N1,
|
||||
// cast from setcc result type to select result type
|
||||
if (AfterLegalize) {
|
||||
SCC = DAG.getSetCC(TLI.getSetCCResultTy(), N0, N1, CC);
|
||||
Temp = DAG.getZeroExtendInReg(SCC, N2.getValueType());
|
||||
if (N2.getValueType() < SCC.getValueType())
|
||||
Temp = DAG.getZeroExtendInReg(SCC, N2.getValueType());
|
||||
else
|
||||
Temp = DAG.getNode(ISD::ZERO_EXTEND, N2.getValueType(), SCC);
|
||||
} else {
|
||||
SCC = DAG.getSetCC(MVT::i1, N0, N1, CC);
|
||||
Temp = DAG.getNode(ISD::ZERO_EXTEND, N2.getValueType(), SCC);
|
||||
|
Loading…
x
Reference in New Issue
Block a user