mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
No need for |=
llvm-svn: 57249
This commit is contained in:
parent
2399c6cb95
commit
950618a347
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user