mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
r123414 broke llvm-gcc bootstrap apparently, revert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123422 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
67d9891690
commit
a899d1c264
@ -1933,7 +1933,7 @@ bool X86FastISel::TryToFoldLoad(MachineInstr *MI, unsigned OpNo,
|
|||||||
XII.foldMemoryOperandImpl(*FuncInfo.MF, MI, OpNo, AddrOps, Size, Alignment);
|
XII.foldMemoryOperandImpl(*FuncInfo.MF, MI, OpNo, AddrOps, Size, Alignment);
|
||||||
if (Result == 0) return false;
|
if (Result == 0) return false;
|
||||||
|
|
||||||
FuncInfo.MBB->insert(FuncInfo.InsertPt, Result);
|
MI->getParent()->insert(MI, Result);
|
||||||
MI->eraseFromParent();
|
MI->eraseFromParent();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -70,20 +70,3 @@ entry:
|
|||||||
; X64: test4:
|
; X64: test4:
|
||||||
; X64: 128(%r{{.*}},%r{{.*}},8)
|
; X64: 128(%r{{.*}},%r{{.*}},8)
|
||||||
}
|
}
|
||||||
|
|
||||||
; PR8961 - Make sure the sext for the GEP addressing comes before the load that
|
|
||||||
; is folded.
|
|
||||||
define i64 @test5(i8* %A, i32 %I, i64 %B) nounwind {
|
|
||||||
%v8 = getelementptr i8* %A, i32 %I
|
|
||||||
%v9 = bitcast i8* %v8 to i64*
|
|
||||||
%v10 = load i64* %v9
|
|
||||||
%v11 = add i64 %B, %v10
|
|
||||||
ret i64 %v11
|
|
||||||
; X64: test5:
|
|
||||||
; X64: movslq %esi, %rax
|
|
||||||
; X64-NEXT: movq (%rdi,%rax), %rax
|
|
||||||
; X64-NEXT: addq %rdx, %rax
|
|
||||||
; X64-NEXT: ret
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user