mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
fix an infinite loop compiling ldecod, notice by JeffC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e11529438c
commit
c24bbaddf8
@ -2320,7 +2320,7 @@ SDOperand DAGCombiner::visitANY_EXTEND(SDNode *N) {
|
|||||||
SDOperand SCC =
|
SDOperand SCC =
|
||||||
SimplifySelectCC(N0.getOperand(0), N0.getOperand(1),
|
SimplifySelectCC(N0.getOperand(0), N0.getOperand(1),
|
||||||
DAG.getConstant(1, VT), DAG.getConstant(0, VT),
|
DAG.getConstant(1, VT), DAG.getConstant(0, VT),
|
||||||
cast<CondCodeSDNode>(N0.getOperand(2))->get());
|
cast<CondCodeSDNode>(N0.getOperand(2))->get(), true);
|
||||||
if (SCC.Val)
|
if (SCC.Val)
|
||||||
return SCC;
|
return SCC;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user