diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-04-05 23:33:29 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-05 23:33:29 +0000 |
commit | 272a2f8432a02ae947c2ddaa8db1ca25f0d0befe (patch) | |
tree | 90ec79d9e13b9c77315e1fb16ceceb8c356eed79 /llvm/lib/CodeGen | |
parent | 61955ab2002ee72c4f4d53acafcf81bac9513680 (diff) | |
download | bcm5719-llvm-272a2f8432a02ae947c2ddaa8db1ca25f0d0befe.tar.gz bcm5719-llvm-272a2f8432a02ae947c2ddaa8db1ca25f0d0befe.zip |
Fix an obvious copy-n-paste bug. It's not known to cause any miscompilation.
llvm-svn: 100494
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 4570c4d8cf1..8c0554d186d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3206,11 +3206,9 @@ static bool FindOptimalMemOpLowering(std::vector<EVT> &MemOps, NonScalarIntSafe, DAG); if (VT == MVT::Other) { - VT = TLI.getPointerTy(); - const Type *Ty = VT.getTypeForEVT(*DAG.getContext()); - if (DstAlign >= TLI.getTargetData()->getABITypeAlignment(Ty) || + if (DstAlign >= TLI.getTargetData()->getPointerPrefAlignment() || TLI.allowsUnalignedMemoryAccesses(VT)) { - VT = MVT::i64; + VT = TLI.getPointerTy(); } else { switch (DstAlign & 7) { case 0: VT = MVT::i64; break; |