From 63c21deee15516723d3ebcf70ba34bb07116e974 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 21 Apr 2011 16:14:46 +0000 Subject: Revert r1296656, "Fix rdar://9289512 - not folding load into compare at -O0...", which broke a couple GCC test suite tests at -O0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129914 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/fast-isel-x86-64.ll | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'test/CodeGen/X86/fast-isel-x86-64.ll') diff --git a/test/CodeGen/X86/fast-isel-x86-64.ll b/test/CodeGen/X86/fast-isel-x86-64.ll index 4665989298..5762ef3312 100644 --- a/test/CodeGen/X86/fast-isel-x86-64.ll +++ b/test/CodeGen/X86/fast-isel-x86-64.ll @@ -14,28 +14,6 @@ define i32 @test1(i32 %i) nounwind ssp { ; CHECK: andl $8, -; rdar://9289512 - The load should fold into the compare. -define void @test2(i64 %x) nounwind ssp { -entry: - %x.addr = alloca i64, align 8 - store i64 %x, i64* %x.addr, align 8 - %tmp = load i64* %x.addr, align 8 - %cmp = icmp sgt i64 %tmp, 42 - br i1 %cmp, label %if.then, label %if.end - -if.then: ; preds = %entry - br label %if.end - -if.end: ; preds = %if.then, %entry - ret void -; CHECK: test2: -; CHECK: movq %rdi, -8(%rsp) -; CHECK: cmpq $42, -8(%rsp) -} - - - - @G = external global i32 define i64 @test3() nounwind { %A = ptrtoint i32* @G to i64 -- cgit v1.2.3