No need for |=

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Lenharth 2008-10-07 17:11:29 +00:00
parent 1ad0c8201b
commit ff75d9edbb

View File

@ -6445,16 +6445,16 @@ void SelectionDAGLegalize::ExpandOp(SDValue Op, SDValue &Lo, SDValue &Hi){
unsigned OpV = Node->getOpcode() == ISD::ADD ? ISD::ADDC : ISD::SUBC;
bool hasCarry = false;
if (NVT == MVT::i64)
hasCarry |= TLI.isOperationLegal(OpV, MVT::i64)
hasCarry = TLI.isOperationLegal(OpV, MVT::i64)
| TLI.isOperationLegal(OpV, MVT::i32)
| TLI.isOperationLegal(OpV, MVT::i16)
| TLI.isOperationLegal(OpV, MVT::i8);
if (NVT == MVT::i32)
hasCarry |= TLI.isOperationLegal(OpV, MVT::i32)
hasCarry = TLI.isOperationLegal(OpV, MVT::i32)
| TLI.isOperationLegal(OpV, MVT::i16)
| TLI.isOperationLegal(OpV, MVT::i8);
if (NVT == MVT::i16)
hasCarry |= TLI.isOperationLegal(OpV, MVT::i16)
hasCarry = TLI.isOperationLegal(OpV, MVT::i16)
| TLI.isOperationLegal(OpV, MVT::i8);
if(hasCarry) {