[llvm-commits] CVS: llvm/lib/Target/TargetLowering.cpp

Jeff Cohen jeffc at jolt-lang.org
Thu Feb 16 18:12:29 PST 2006



Changes in directory llvm/lib/Target:

TargetLowering.cpp updated: 1.31 -> 1.32
---
Log message:

Fix bug noticed by VC++.

---
Diffs of the changes:  (+2 -2)

 TargetLowering.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/TargetLowering.cpp
diff -u llvm/lib/Target/TargetLowering.cpp:1.31 llvm/lib/Target/TargetLowering.cpp:1.32
--- llvm/lib/Target/TargetLowering.cpp:1.31	Thu Feb 16 15:11:51 2006
+++ llvm/lib/Target/TargetLowering.cpp	Thu Feb 16 20:12:18 2006
@@ -243,9 +243,9 @@
     
     // If all of the demanded bits are known zero on one side, return the other.
     // These bits cannot contribute to the result of the 'or'.
-    if ((DemandedMask & ~KnownOne2 & KnownZero) == DemandedMask & ~KnownOne2)
+    if ((DemandedMask & ~KnownOne2 & KnownZero) == (DemandedMask & ~KnownOne2))
       return TLO.CombineTo(Op, Op.getOperand(0));
-    if ((DemandedMask & ~KnownOne & KnownZero2) == DemandedMask & ~KnownOne)
+    if ((DemandedMask & ~KnownOne & KnownZero2) == (DemandedMask & ~KnownOne))
       return TLO.CombineTo(Op, Op.getOperand(1));
     // If all of the potentially set bits on one side are known to be set on
     // the other side, just use the 'other' side.






More information about the llvm-commits mailing list