[llvm-commits] [llvm] r57249 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Tue Oct 7 10:11:29 PDT 2008
Author: alenhar2
Date: Tue Oct 7 12:11:29 2008
New Revision: 57249
URL: http://llvm.org/viewvc/llvm-project?rev=57249&view=rev
Log:
No need for |=
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=57249&r1=57248&r2=57249&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue Oct 7 12:11:29 2008
@@ -6445,16 +6445,16 @@
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) {
More information about the llvm-commits
mailing list