mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
[AArch64] Assert that CCMP isel didn't fail inconsistently.
We verify that the op tree is eligible for CCMP emission in isConjunctionDisjunctionTree, but it's also possible that emitConjunctionDisjunctionTree fails later. The initial check is useful, as it avoids building nodes that will get discarded. Still, make sure that inconsistencies don't happen with an assert. llvm-svn: 258532
This commit is contained in:
parent
a81b52c690
commit
3a901cfda8
@ -1418,11 +1418,13 @@ static SDValue emitConjunctionDisjunctionTree(SelectionDAG &DAG, SDValue Val,
|
||||
AArch64CC::CondCode RHSCC;
|
||||
SDValue CmpR = emitConjunctionDisjunctionTree(DAG, RHS, RHSCC, PushNegate,
|
||||
CCOp, Predicate, Depth+1);
|
||||
assert(CmpR && "Transform legality should have been checked already!");
|
||||
if (NegateOperands && !PushNegate)
|
||||
RHSCC = AArch64CC::getInvertedCondCode(RHSCC);
|
||||
// Emit LHS. We must push the negate through if we need to negate it.
|
||||
SDValue CmpL = emitConjunctionDisjunctionTree(DAG, LHS, OutCC, NegateOperands,
|
||||
CmpR, RHSCC, Depth+1);
|
||||
assert(CmpL && "Transform legality should have been checked already!");
|
||||
// If we transformed an OR to and AND then we have to negate the result
|
||||
// (or absorb a PushNegate resulting in a double negation).
|
||||
if (Opcode == ISD::OR && !PushNegate)
|
||||
|
Loading…
x
Reference in New Issue
Block a user