[llvm-commits] [llvm] r47380 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Evan Cheng
evan.cheng at apple.com
Thu Feb 21 13:00:27 PST 2008
Hi Dan,
Your changes from 47380 to 47385 appear to have broken 186.crafty and
403.gcc. Please take a look.
On Feb 20, 2008, at 8:30 AM, Dan Gohman wrote:
> Author: djg
> Date: Wed Feb 20 10:30:17 2008
> New Revision: 47380
>
> URL: http://llvm.org/viewvc/llvm-project?rev=47380&view=rev
> Log:
> Use APInt::intersects.
>
> Modified:
> llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
>
> Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=47380&r1=47379&r2=47380&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
> +++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Wed Feb 20
> 10:30:17 2008
> @@ -1283,9 +1283,9 @@
> APInt SignBit = APInt::getSignBit(BitWidth);
> SignBit = SignBit.lshr(ShAmt); // Adjust to where it is now
> in the mask.
>
> - if (!!(KnownZero & SignBit)) {
> + if (KnownZero.intersects(SignBit)) {
> KnownZero |= HighBits; // New bits are known zero.
> - } else if (!!(KnownOne & SignBit)) {
> + } else if (KnownOne.intersects(SignBit)) {
> KnownOne |= HighBits; // New bits are known one.
> }
> }
Is this right???
Evan
>
> @@ -1313,10 +1313,10 @@
>
> // If the sign bit of the input is known set or clear, then we
> know the
> // top bits of the result.
> - if (!!(KnownZero & InSignBit)) { // Input sign bit
> known clear
> + if (KnownZero.intersects(InSignBit)) { // Input sign
> bit known clear
> KnownZero |= NewBits;
> KnownOne &= ~NewBits;
> - } else if (!!(KnownOne & InSignBit)) { // Input sign bit
> known set
> + } else if (KnownOne.intersects(InSignBit)) { // Input sign
> bit known set
> KnownOne |= NewBits;
> KnownZero &= ~NewBits;
> } else { // Input sign bit unknown
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list