[llvm-commits] [llvm] r123431 - in /llvm/trunk: lib/Target/X86/X86FastISel.cpp test/CodeGen/X86/fast-isel-gep.ll
Chris Lattner
sabre at nondot.org
Thu Jan 13 22:14:33 PST 2011
Author: lattner
Date: Fri Jan 14 00:14:33 2011
New Revision: 123431
URL: http://llvm.org/viewvc/llvm-project?rev=123431&view=rev
Log:
revert my fastisel patch again which apparently still gives the
llvm-gcc-i386-linux-selfhost buildbot heartburn...
Modified:
llvm/trunk/lib/Target/X86/X86FastISel.cpp
llvm/trunk/test/CodeGen/X86/fast-isel-gep.ll
Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=123431&r1=123430&r2=123431&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Fri Jan 14 00:14:33 2011
@@ -1933,7 +1933,7 @@
XII.foldMemoryOperandImpl(*FuncInfo.MF, MI, OpNo, AddrOps, Size, Alignment);
if (Result == 0) return false;
- FuncInfo.MBB->insert(FuncInfo.InsertPt, Result);
+ MI->getParent()->insert(MI, Result);
MI->eraseFromParent();
return true;
}
Modified: llvm/trunk/test/CodeGen/X86/fast-isel-gep.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fast-isel-gep.ll?rev=123431&r1=123430&r2=123431&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fast-isel-gep.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fast-isel-gep.ll Fri Jan 14 00:14:33 2011
@@ -70,20 +70,3 @@
; X64: test4:
; 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
-}
-
-
More information about the llvm-commits
mailing list