aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-21 19:47:04 +0000
committerDan Gohman <gohman@apple.com>2009-09-21 19:47:04 +0000
commite7c8242baa1da5fb800661894496028218c0ff85 (patch)
tree26d7cbb158522e0e9461229e313d36d34e761cfc /llvm/lib/CodeGen/MachineInstr.cpp
parent38c3ae9bc40bda069df0c7a564503e22d8a257c1 (diff)
downloadllvm-e7c8242baa1da5fb800661894496028218c0ff85.zip
llvm-e7c8242baa1da5fb800661894496028218c0ff85.tar.gz
llvm-e7c8242baa1da5fb800661894496028218c0ff85.tar.bz2
Change MachineMemOperand's alignment value to be the alignment of
the base pointer, without the offset. This matches MemSDNode's new alignment behavior, and holds more interesting information. llvm-svn: 82473
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index cf6597d..2f5964f 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -284,7 +284,7 @@ MachineMemOperand::MachineMemOperand(const Value *v, unsigned int f,
int64_t o, uint64_t s, unsigned int a)
: Offset(o), Size(s), V(v),
Flags((f & 7) | ((Log2_32(a) + 1) << 3)) {
- assert(isPowerOf2_32(a) && "Alignment is not a power of 2!");
+ assert(getBaseAlignment() == a && "Alignment is not a power of 2!");
assert((isLoad() || isStore()) && "Not a load/store!");
}