forked from OSchip/llvm-project
DAG: Remove pointless type check
These are only integer operations. llvm-svn: 304417
This commit is contained in:
parent
50f43e4168
commit
b083570532
|
@ -1960,7 +1960,7 @@ SDValue DAGCombiner::visitADD(SDNode *N) {
|
|||
|
||||
// fold (a+b) -> (a|b) iff a and b share no bits.
|
||||
if ((!LegalOperations || TLI.isOperationLegal(ISD::OR, VT)) &&
|
||||
VT.isInteger() && DAG.haveNoCommonBitsSet(N0, N1))
|
||||
DAG.haveNoCommonBitsSet(N0, N1))
|
||||
return DAG.getNode(ISD::OR, DL, VT, N0, N1);
|
||||
|
||||
if (SDValue Combined = visitADDLike(N0, N1, N))
|
||||
|
|
Loading…
Reference in New Issue