summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86ISelDAGToDAG.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/X86/X86ISelDAGToDAG.cpp
parent63602b8a69b2729f0789cd3c920aceef0ece64cb (diff)
downloadllvm-2e68b6f52d0979575b2f02ed29717d907ba0684c.tar.gz
llvm-2e68b6f52d0979575b2f02ed29717d907ba0684c.tar.bz2
llvm-2e68b6f52d0979575b2f02ed29717d907ba0684c.tar.xz
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/X86/X86ISelDAGToDAG.cpp')
-rw-r--r--lib/Target/X86/X86ISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp
index b61e68e0cf..c8b341406c 100644
--- a/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -819,7 +819,7 @@ bool X86DAGToDAGISel::MatchAddress(SDOperand N, X86ISelAddressMode &AM,
// On x86-64, the resultant disp must fit in 32-bits.
isInt32(AM.Disp + CN->getSignExtended()) &&
// Check to see if the LHS & C is zero.
- CurDAG->MaskedValueIsZero(N.getOperand(0), CN->getValue())) {
+ CurDAG->MaskedValueIsZero(N.getOperand(0), CN->getAPIntValue())) {
AM.Disp += CN->getValue();
return false;
}