mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Fix CodeGen/PowerPC/2006-12-07-SelectCrash.ll on PPC64
llvm-svn: 32336
This commit is contained in:
parent
40f809e2ae
commit
db346e68a9
@ -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…
Reference in New Issue
Block a user