aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-25 21:11:39 +0000
committerDan Gohman <gohman@apple.com>2008-02-25 21:11:39 +0000
commit2e68b6f52d0979575b2f02ed29717d907ba0684c (patch)
treea234e94ceb3bed76294f3cda0344dff46ff6ec32 /lib/Target/Alpha/AlphaISelDAGToDAG.cpp
parent63602b8a69b2729f0789cd3c920aceef0ece64cb (diff)
downloadexternal_llvm-2e68b6f52d0979575b2f02ed29717d907ba0684c.zip
external_llvm-2e68b6f52d0979575b2f02ed29717d907ba0684c.tar.gz
external_llvm-2e68b6f52d0979575b2f02ed29717d907ba0684c.tar.bz2
Convert MaskedValueIsZero and all its users to use APInt. Also add
a SignBitIsZero function to simplify a common use case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47561 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelDAGToDAG.cpp')
-rw-r--r--lib/Target/Alpha/AlphaISelDAGToDAG.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
index d1e1311..b0ca39b 100644
--- a/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
+++ b/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
@@ -91,7 +91,9 @@ namespace {
// see if the missing bits (0x1000) are already known zero if not, the zap
// isn't okay to do, as it won't clear all the required bits.
if (BitsToCheck &&
- !CurDAG->MaskedValueIsZero(LHS, BitsToCheck))
+ !CurDAG->MaskedValueIsZero(LHS,
+ APInt(LHS.getValueSizeInBits(),
+ BitsToCheck)))
return 0;
return Result;