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 | f1d8304fe31b7f840bd63a6d173587998ca877b8 (patch) | |
tree | 79a18454925de7b467ce2c477fdb5a0011b33f6f /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | 35b6f9a92944931204ef01153fe9c0145a6c5a90 (diff) | |
download | bcm5719-llvm-f1d8304fe31b7f840bd63a6d173587998ca877b8.tar.gz bcm5719-llvm-f1d8304fe31b7f840bd63a6d173587998ca877b8.zip |
Eliminate unnecessary uses of getZExtValue().
llvm-svn: 106279
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 2c4a7c54c44..5cb739ef4d5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/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); |