commit | 8c65f6e71c1d46d823b9a884819992a9255edd54 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Tue Jan 05 21:05:54 2010 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Tue Jan 05 21:05:54 2010 +0000 |
tree | 8fbef7d34f7ad7c92c4448013b6f60282eb53d14 | |
parent | 718bf3f89d69f76791fec73b1edd55c450a93f12 [diff] [blame] |
Move remaining stuff to the isInteger predicate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92771 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp index 6064cc5..6023185 100644 --- a/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -596,8 +596,7 @@ // (where tmp = 8*tmp2) into: // getelementptr [100 x double]* %arr, i32 0, i32 %tmp2; bitcast - if (TD && isa<ArrayType>(SrcElTy) && - ResElTy == Type::getInt8Ty(GEP.getContext())) { + if (TD && isa<ArrayType>(SrcElTy) && ResElTy->isInteger(8)) { uint64_t ArrayEltSize = TD->getTypeAllocSize(cast<ArrayType>(SrcElTy)->getElementType());