DAG: Remove pointless type check

These are only integer operations.

llvm-svn: 304417
This commit is contained in:
Matt Arsenault 2017-06-01 14:49:46 +00:00
parent 50f43e4168
commit b083570532
1 changed files with 1 additions and 1 deletions

View File

@ -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))