llvm.org GIT mirror llvm / 8295e49
Temporarily revert r60973. It's inexplicably causing a failure when self-hosting LLVM: llvm[2]: Linking Release executable opt (without symbols) ... Undefined symbols: "llvm::APFloat::IEEEsingle", referenced from: __ZN4llvm7APFloat10IEEEsingleE$non_lazy_ptr in libLLVMCore.a(Constants.o) __ZN4llvm7APFloat10IEEEsingleE$non_lazy_ptr in libLLVMCore.a(AsmWriter.o) __ZN4llvm7APFloat10IEEEsingleE$non_lazy_ptr in libLLVMCore.a(ConstantFold.o) "llvm::APFloat::IEEEdouble", referenced from: __ZN4llvm7APFloat10IEEEdoubleE$non_lazy_ptr in libLLVMCore.a(Constants.o) __ZN4llvm7APFloat10IEEEdoubleE$non_lazy_ptr in libLLVMCore.a(AsmWriter.o) __ZN4llvm7APFloat10IEEEdoubleE$non_lazy_ptr in libLLVMCore.a(ConstantFold.o) ld: symbol(s) not found This is in release mode. To replicate, compile llvm and llvm-gcc in optimized mode. Then build llvm, in optimized mode, with the newly created compiler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60977 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 10 years ago
7 changed file(s) with 7 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
10331033 // Perform PHI construction.
10341034 Value* v = GetValueForBlock(LI->getParent(), LI, BlockReplValues, true);
10351035 LI->replaceAllUsesWith(v);
1036 v->takeName(LI);
10371036 if (isa(v->getType()))
10381037 MD->invalidateCachedPointerInfo(v);
10391038 toErase.push_back(LI);
None ; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {tmp17625.* = phi i32. }
1 ; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {tmp17631 = phi i32. }
0 ; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {tmp17625 =}
1 ; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {tmp17631 =}
22
33 @last = external global [65 x i32*] ; <[65 x i32*]*> [#uses=1]
44
None ; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {tmp298316 = phi i32 }
0 ; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {tmp298316 =}
11
22 %struct..0anon = type { i32 }
33 %struct.FILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, %struct.__sFILEX*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 }
None ; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {tmp47 = phi i32 }
0 ; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep tmp51.rle
11
22 %struct.anon = type { i32 (i32, i32, i32)*, i32, i32, [3 x i32], i8*, i8*, i8* }
33 @debug = external constant i32 ; [#uses=0]
None ; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {%DEAD = phi i32. }
0 ; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {DEAD =}
11
22 define i32 @main(i32** %p) {
33 block1:
None ; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {DEAD = phi i32 }
0 ; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {DEAD.rle = phi i32}
11 ; The %7 and %4 loads combine to make %DEAD unneeded.
22 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
33 target triple = "i386-apple-darwin7"
None ; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {DEAD = phi i32 }
0 ; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {DEAD =}
11
22 define i32 @main(i32* %p) {
33 block1: