mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Comparison of primitive type sizes should now be done in bits, not bytes.
This patch converts getPrimitiveSize to getPrimitiveSizeInBits where it is appropriate to do so (comparison of integer primitive types). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -498,8 +498,9 @@ void IndVarSimplify::runOnLoop(Loop *L) {
|
||||
bool DifferingSizes = false;
|
||||
for (unsigned i = 1, e = IndVars.size(); i != e; ++i) {
|
||||
const Type *Ty = IndVars[i].first->getType();
|
||||
DifferingSizes |= Ty->getPrimitiveSize() != LargestType->getPrimitiveSize();
|
||||
if (Ty->getPrimitiveSize() > LargestType->getPrimitiveSize())
|
||||
DifferingSizes |=
|
||||
Ty->getPrimitiveSizeInBits() != LargestType->getPrimitiveSizeInBits();
|
||||
if (Ty->getPrimitiveSizeInBits() > LargestType->getPrimitiveSizeInBits())
|
||||
LargestType = Ty;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user