mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
Fix an obvious copy-n-paste bug. It's not known to cause any miscompilation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
79180e2ef5
commit
18141eed26
@ -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…
x
Reference in New Issue
Block a user