projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
When ext-loading and trunc-storing vectors to memory, on x86 32bit systems, allow...
[oota-llvm.git]
/
lib
/
Target
/
TargetData.cpp
diff --git
a/lib/Target/TargetData.cpp
b/lib/Target/TargetData.cpp
index 3acb4ddce7183557efb71ef4709b7409795e7a19..cc6dc1e25998eb4379d0c9fb05b8e33f8a428c41 100644
(file)
--- a/
lib/Target/TargetData.cpp
+++ b/
lib/Target/TargetData.cpp
@@
-117,8
+117,8
@@
TargetAlignElem::operator==(const TargetAlignElem &rhs) const {
&& TypeBitWidth == rhs.TypeBitWidth);
}
&& TypeBitWidth == rhs.TypeBitWidth);
}
-const TargetAlignElem
TargetData::InvalidAlignmentElem =
-
TargetAlignElem::get((AlignTypeEnum) -1, 0, 0, 0)
;
+const TargetAlignElem
+
TargetData::InvalidAlignmentElem = { (AlignTypeEnum)0xFF, 0, 0, 0 }
;
//===----------------------------------------------------------------------===//
// TargetData Class Implementation
//===----------------------------------------------------------------------===//
// TargetData Class Implementation
@@
-373,7
+373,7
@@
unsigned TargetData::getAlignmentInfo(AlignTypeEnum AlignType,
// If the alignment is not a power of 2, round up to the next power of 2.
// This happens for non-power-of-2 length vectors.
if (Align & (Align-1))
// If the alignment is not a power of 2, round up to the next power of 2.
// This happens for non-power-of-2 length vectors.
if (Align & (Align-1))
- Align =
llvm::
NextPowerOf2(Align);
+ Align = NextPowerOf2(Align);
return Align;
}
}
return Align;
}
}