diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-18 14:22:04 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-18 14:22:04 +0000 |
commit | e368b460a206fafa0d31d5d059b1779b94f7df8c (patch) | |
tree | 73508159acd14e76dc92313df355849ee75ec35d /lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | 7720cb3823d5b5868f9b88b0127277820edcb562 (diff) |
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/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 2c4a7c54c4..5cb739ef4d 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -345,7 +345,7 @@ bool FastISel::SelectGetElementPtr(const User *I) { // If this is a constant subscript, handle it quickly. if (const ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) { - if (CI->getZExtValue() == 0) continue; + if (CI->isZero()) continue; uint64_t Offs = TD.getTypeAllocSize(Ty)*cast<ConstantInt>(CI)->getSExtValue(); N = FastEmit_ri_(VT, ISD::ADD, N, NIsKill, Offs, VT); |