summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-10-27 22:39:16 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-10-27 22:39:16 +0000
commite5a6adceac01a08a22abca37ae37a4a36a608810 (patch)
tree778c0ac72af722127161a54cddd96eb2078962ba /llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
parent548735633684b33799947420651d8a2ca17273ee (diff)
downloadbcm5719-llvm-e5a6adceac01a08a22abca37ae37a4a36a608810.tar.gz
bcm5719-llvm-e5a6adceac01a08a22abca37ae37a4a36a608810.zip
Also set addrmode6 alignment when align==size.
Previously, we were only setting the alignment bits on over-aligned loads and stores. llvm-svn: 143160
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
index 39d4d39c904..7c67e0a1e35 100644
--- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -923,7 +923,7 @@ bool ARMDAGToDAGISel::SelectAddrMode6(SDNode *Parent, SDValue N, SDValue &Addr,
// The maximum alignment is equal to the memory size being referenced.
unsigned LSNAlign = LSN->getAlignment();
unsigned MemSize = LSN->getMemoryVT().getSizeInBits() / 8;
- if (LSNAlign > MemSize && MemSize > 1)
+ if (LSNAlign >= MemSize && MemSize > 1)
Alignment = MemSize;
} else {
// All other uses of addrmode6 are for intrinsics. For now just record
OpenPOWER on IntegriCloud