mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Fix an obvious copy-n-paste bug. It's not known to cause any miscompilation.
llvm-svn: 100494
This commit is contained in:
parent
f753452587
commit
c6dc63d62c
@ -3206,11 +3206,9 @@ static bool FindOptimalMemOpLowering(std::vector<EVT> &MemOps,
|
|||||||
NonScalarIntSafe, DAG);
|
NonScalarIntSafe, DAG);
|
||||||
|
|
||||||
if (VT == MVT::Other) {
|
if (VT == MVT::Other) {
|
||||||
VT = TLI.getPointerTy();
|
if (DstAlign >= TLI.getTargetData()->getPointerPrefAlignment() ||
|
||||||
const Type *Ty = VT.getTypeForEVT(*DAG.getContext());
|
|
||||||
if (DstAlign >= TLI.getTargetData()->getABITypeAlignment(Ty) ||
|
|
||||||
TLI.allowsUnalignedMemoryAccesses(VT)) {
|
TLI.allowsUnalignedMemoryAccesses(VT)) {
|
||||||
VT = MVT::i64;
|
VT = TLI.getPointerTy();
|
||||||
} else {
|
} else {
|
||||||
switch (DstAlign & 7) {
|
switch (DstAlign & 7) {
|
||||||
case 0: VT = MVT::i64; break;
|
case 0: VT = MVT::i64; break;
|
||||||
|
Loading…
Reference in New Issue
Block a user