aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-18 14:22:04 +0000
committerDan Gohman <gohman@apple.com>2010-06-18 14:22:04 +0000
commite368b460a206fafa0d31d5d059b1779b94f7df8c (patch)
tree73508159acd14e76dc92313df355849ee75ec35d /lib/Target/X86/X86FastISel.cpp
parent7720cb3823d5b5868f9b88b0127277820edcb562 (diff)
downloadexternal_llvm-e368b460a206fafa0d31d5d059b1779b94f7df8c.zip
external_llvm-e368b460a206fafa0d31d5d059b1779b94f7df8c.tar.gz
external_llvm-e368b460a206fafa0d31d5d059b1779b94f7df8c.tar.bz2
Eliminate unnecessary uses of getZExtValue().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86FastISel.cpp')
-rw-r--r--lib/Target/X86/X86FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp
index 4ec6965..7bbe6ab 100644
--- a/lib/Target/X86/X86FastISel.cpp
+++ b/lib/Target/X86/X86FastISel.cpp
@@ -1210,7 +1210,7 @@ bool X86FastISel::X86VisitIntrinsicCall(const IntrinsicInst &I) {
unsigned ResultReg = createResultReg(TLI.getRegClassFor(VT));
BuildMI(MBB, DL, TII.get(OpC), ResultReg).
- addImm(CI->getZExtValue() == 0 ? -1ULL : 0);
+ addImm(CI->isZero() ? -1ULL : 0);
UpdateValueMap(&I, ResultReg);
return true;
}