forked from OSchip/llvm-project
parent
61d6ddbf0a
commit
69b8fa8391
|
@ -31887,7 +31887,7 @@ static SDValue combineSelect(SDNode *N, SelectionDAG &DAG,
|
||||||
SUBUSBuilder);
|
SUBUSBuilder);
|
||||||
|
|
||||||
if (auto *OpRHSBV = dyn_cast<BuildVectorSDNode>(OpRHS))
|
if (auto *OpRHSBV = dyn_cast<BuildVectorSDNode>(OpRHS))
|
||||||
if (auto *CondRHSBV = dyn_cast<BuildVectorSDNode>(CondRHS)) {
|
if (isa<BuildVectorSDNode>(CondRHS)) {
|
||||||
// If the RHS is a constant we have to reverse the const
|
// If the RHS is a constant we have to reverse the const
|
||||||
// canonicalization.
|
// canonicalization.
|
||||||
// x > C-1 ? x+-C : 0 --> subus x, C
|
// x > C-1 ? x+-C : 0 --> subus x, C
|
||||||
|
|
Loading…
Reference in New Issue