[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Changes in directory llvm/tools/bugpoint: Miscompilation.cpp updated: 1.88 -> 1.89 --- Log message: remove use of deprecated apis --- Diffs of the changes: (+1 -2) Miscompilation.cpp |3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) Index: llvm/tools/bugpoint/Miscompilation.cpp diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.88 llvm/tools/bugpoint/Miscompilation.cpp:1.89 --- llvm/tools/bugpoint/Miscompilation.cpp:1.88 Tue Feb 13 00:05:43 2007 +++ llvm/tools/bugpoint/Miscompilation.cpp Mon Feb 19 01:41:31 2007 @@ -702,8 +702,7 @@ // GetElementPtr *funcName, ulong 0, ulong 0 std::vector GEPargs(2,Constant::getNullValue(Type::Int32Ty)); -Value *GEP = - ConstantExpr::getGetElementPtr(funcName, GEPargs); +Value *GEP = ConstantExpr::getGetElementPtr(funcName, &GEPargs[0], 2); std::vector ResolverArgs; ResolverArgs.push_back(GEP); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Changes in directory llvm/tools/bugpoint: Miscompilation.cpp updated: 1.87 -> 1.88 --- Log message: eliminate use of vector-related ctors --- Diffs of the changes: (+7 -4) Miscompilation.cpp | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) Index: llvm/tools/bugpoint/Miscompilation.cpp diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.87 llvm/tools/bugpoint/Miscompilation.cpp:1.88 --- llvm/tools/bugpoint/Miscompilation.cpp:1.87 Mon Feb 5 15:19:13 2007 +++ llvm/tools/bugpoint/Miscompilation.cpp Tue Feb 13 00:05:43 2007 @@ -663,7 +663,8 @@ // Call the old main function and return its result BasicBlock *BB = new BasicBlock("entry", newMain); - CallInst *call = new CallInst(oldMainProto, args, "", BB); + CallInst *call = new CallInst(oldMainProto, &args[0], args.size(), +"", BB); // If the type of old function wasn't void, return value of call new ReturnInst(call, BB); @@ -734,7 +735,8 @@ // Resolve the call to function F via the JIT API: // // call resolver(GetElementPtr...) - CallInst *Resolver = new CallInst(resolverFunc, ResolverArgs, + CallInst *Resolver = new CallInst(resolverFunc, &ResolverArgs[0], +ResolverArgs.size(), "resolver", LookupBB); // cast the result from the resolver to correctly-typed function CastInst *CastedResolver = new BitCastInst(Resolver, @@ -756,10 +758,11 @@ // Pass on the arguments to the real function, return its result if (F->getReturnType() == Type::VoidTy) { -new CallInst(FuncPtr, Args, "", DoCallBB); +new CallInst(FuncPtr, &Args[0], Args.size(), "", DoCallBB); new ReturnInst(DoCallBB); } else { -CallInst *Call = new CallInst(FuncPtr, Args, "retval", DoCallBB); +CallInst *Call = new CallInst(FuncPtr, &Args[0], Args.size(), + "retval", DoCallBB); new ReturnInst(Call, DoCallBB); } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Changes in directory llvm/tools/bugpoint: Miscompilation.cpp updated: 1.83 -> 1.84 --- Log message: relax type --- Diffs of the changes: (+1 -1) Miscompilation.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/tools/bugpoint/Miscompilation.cpp diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.83 llvm/tools/bugpoint/Miscompilation.cpp:1.84 --- llvm/tools/bugpoint/Miscompilation.cpp:1.83 Sun Dec 31 00:02:26 2006 +++ llvm/tools/bugpoint/Miscompilation.cpp Sun Jan 7 02:13:39 2007 @@ -673,7 +673,7 @@ // Add the resolver to the Safe module. // Prototype: void *getPointerToNamedFunction(const char* Name) - Function *resolverFunc = + Constant *resolverFunc = Safe->getOrInsertFunction("getPointerToNamedFunction", PointerType::get(Type::Int8Ty), PointerType::get(Type::Int8Ty), (Type *)0); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Changes in directory llvm/tools/bugpoint: Miscompilation.cpp updated: 1.81 -> 1.82 --- Log message: For PR950: http://llvm.org/PR950 : This patch removes the SetCC instructions and replaces them with the ICmp and FCmp instructions. The SetCondInst instruction has been removed and been replaced with ICmpInst and FCmpInst. --- Diffs of the changes: (+2 -2) Miscompilation.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/tools/bugpoint/Miscompilation.cpp diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.81 llvm/tools/bugpoint/Miscompilation.cpp:1.82 --- llvm/tools/bugpoint/Miscompilation.cpp:1.81 Sun Nov 26 19:05:10 2006 +++ llvm/tools/bugpoint/Miscompilation.cpp Sat Dec 23 00:05:41 2006 @@ -724,8 +724,8 @@ // Check to see if we already looked up the value. Value *CachedVal = new LoadInst(Cache, "fpcache", EntryBB); - Value *IsNull = new SetCondInst(Instruction::SetEQ, CachedVal, - NullPtr, "isNull", EntryBB); + Value *IsNull = new ICmpInst(ICmpInst::ICMP_EQ, CachedVal, + NullPtr, "isNull", EntryBB); new BranchInst(LookupBB, DoCallBB, IsNull, EntryBB); // Resolve the call to function F via the JIT API: ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Changes in directory llvm/tools/bugpoint: Miscompilation.cpp updated: 1.79 -> 1.80 --- Log message: Minor style fixes from review. --- Diffs of the changes: (+2 -3) Miscompilation.cpp |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) Index: llvm/tools/bugpoint/Miscompilation.cpp diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.79 llvm/tools/bugpoint/Miscompilation.cpp:1.80 --- llvm/tools/bugpoint/Miscompilation.cpp:1.79 Sat Nov 11 13:05:02 2006 +++ llvm/tools/bugpoint/Miscompilation.cpp Sat Nov 11 13:59:25 2006 @@ -518,9 +518,8 @@ // See if we can rip any loops out of the miscompiled functions and still // trigger the problem. - if (!DisableLoopExtraction) -if (!BugpointIsInterrupted && -ExtractLoops(BD, TestFn, MiscompiledFunctions)) { + if (!BugpointIsInterrupted && !DisableLoopExtraction && + ExtractLoops(BD, TestFn, MiscompiledFunctions)) { // Okay, we extracted some loops and the problem still appears. See if we // can eliminate some of the created functions from being candidates. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Changes in directory llvm/tools/bugpoint: Miscompilation.cpp updated: 1.78 -> 1.79 --- Log message: Add a -disable-loop-extraction option to bugpoint. --- Diffs of the changes: (+9 -2) Miscompilation.cpp | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) Index: llvm/tools/bugpoint/Miscompilation.cpp diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.78 llvm/tools/bugpoint/Miscompilation.cpp:1.79 --- llvm/tools/bugpoint/Miscompilation.cpp:1.78 Thu Nov 2 14:25:50 2006 +++ llvm/tools/bugpoint/Miscompilation.cpp Sat Nov 11 13:05:02 2006 @@ -33,6 +33,11 @@ } namespace { + static llvm::cl::opt +DisableLoopExtraction("disable-loop-extraction", +cl::desc("Don't extract loops when searching for miscompilations"), +cl::init(false)); + class ReduceMiscompilingPasses : public ListReducer { BugDriver &BD; public: @@ -512,8 +517,10 @@ // See if we can rip any loops out of the miscompiled functions and still // trigger the problem. - if (!BugpointIsInterrupted && - ExtractLoops(BD, TestFn, MiscompiledFunctions)) { + + if (!DisableLoopExtraction) +if (!BugpointIsInterrupted && +ExtractLoops(BD, TestFn, MiscompiledFunctions)) { // Okay, we extracted some loops and the problem still appears. See if we // can eliminate some of the created functions from being candidates. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Changes in directory llvm/tools/bugpoint: Miscompilation.cpp updated: 1.76 -> 1.77 --- Log message: Change DisambiguateGlobalSymbols to not rename asm globals, which breaks bugpoint on leopard. --- Diffs of the changes: (+1 -0) Miscompilation.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/tools/bugpoint/Miscompilation.cpp diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.76 llvm/tools/bugpoint/Miscompilation.cpp:1.77 --- llvm/tools/bugpoint/Miscompilation.cpp:1.76 Wed Aug 23 15:34:57 2006 +++ llvm/tools/bugpoint/Miscompilation.cpp Thu Sep 7 13:21:07 2006 @@ -234,6 +234,7 @@ Mangler Mang(*M); // Agree with the CBE on symbol naming Mang.markCharUnacceptable('.'); + Mang.setPreserveAsmNames(true); for (Module::global_iterator I = M->global_begin(), E = M->global_end(); I != E; ++I) I->setName(Mang.getValueName(I)); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Changes in directory llvm/tools/bugpoint: Miscompilation.cpp updated: 1.74 -> 1.75 --- Log message: wrap long line --- Diffs of the changes: (+2 -1) Miscompilation.cpp |3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm/tools/bugpoint/Miscompilation.cpp diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.74 llvm/tools/bugpoint/Miscompilation.cpp:1.75 --- llvm/tools/bugpoint/Miscompilation.cpp:1.74 Wed Dec 14 16:01:07 2005 +++ llvm/tools/bugpoint/Miscompilation.cpp Thu May 4 18:35:31 2006 @@ -234,7 +234,8 @@ Mangler Mang(*M); // Agree with the CBE on symbol naming Mang.markCharUnacceptable('.'); - for (Module::global_iterator I = M->global_begin(), E = M->global_end(); I != E; ++I) + for (Module::global_iterator I = M->global_begin(), E = M->global_end(); + I != E; ++I) I->setName(Mang.getValueName(I)); for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) I->setName(Mang.getValueName(I)); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Changes in directory llvm/tools/bugpoint: Miscompilation.cpp updated: 1.73 -> 1.74 --- Log message: Fix printing of the instructions. --- Diffs of the changes: (+1 -1) Miscompilation.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/tools/bugpoint/Miscompilation.cpp diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.73 llvm/tools/bugpoint/Miscompilation.cpp:1.74 --- llvm/tools/bugpoint/Miscompilation.cpp:1.73 Tue Dec 6 14:51:30 2005 +++ llvm/tools/bugpoint/Miscompilation.cpp Wed Dec 14 16:01:07 2005 @@ -862,7 +862,7 @@ std::cout << " gcc " << SharedObject << " " << TestModuleBC << ".s -o " << TestModuleBC << ".exe"; #if defined (HAVE_LINK_R) -std::cout << "-Wl,-R."; +std::cout << " -Wl,-R."; #endif std::cout << "\n"; std::cout << " " << TestModuleBC << ".exe"; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Changes in directory llvm/tools/bugpoint: Miscompilation.cpp updated: 1.72 -> 1.73 --- Log message: This solves the problem of the CBE renaming symbols that start with . but the assembly side still trying to reference them by their old names. Should be safe untill we hit a language front end that lets you specify such a name. --- Diffs of the changes: (+2 -0) Miscompilation.cpp |2 ++ 1 files changed, 2 insertions(+) Index: llvm/tools/bugpoint/Miscompilation.cpp diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.72 llvm/tools/bugpoint/Miscompilation.cpp:1.73 --- llvm/tools/bugpoint/Miscompilation.cpp:1.72 Sat Oct 22 23:37:20 2005 +++ llvm/tools/bugpoint/Miscompilation.cpp Tue Dec 6 14:51:30 2005 @@ -232,6 +232,8 @@ // mangler is used by the two code generators), but having symbols with the // same name causes warnings to be emitted by the code generator. Mangler Mang(*M); + // Agree with the CBE on symbol naming + Mang.markCharUnacceptable('.'); for (Module::global_iterator I = M->global_begin(), E = M->global_end(); I != E; ++I) I->setName(Mang.getValueName(I)); for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Changes in directory llvm/tools/bugpoint: Miscompilation.cpp updated: 1.71 -> 1.72 --- Log message: When a function takes a variable number of pointer arguments, with a zero pointer marking the end of the list, the zero *must* be cast to the pointer type. An un-cast zero is a 32-bit int, and at least on x86_64, gcc will not extend the zero to 64 bits, thus allowing the upper 32 bits to be random junk. The new END_WITH_NULL macro may be used to annotate a such a function so that GCC (version 4 or newer) will detect the use of un-casted zero at compile time. --- Diffs of the changes: (+1 -1) Miscompilation.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/tools/bugpoint/Miscompilation.cpp diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.71 llvm/tools/bugpoint/Miscompilation.cpp:1.72 --- llvm/tools/bugpoint/Miscompilation.cpp:1.71 Tue Aug 2 18:25:56 2005 +++ llvm/tools/bugpoint/Miscompilation.cpp Sat Oct 22 23:37:20 2005 @@ -666,7 +666,7 @@ Function *resolverFunc = Safe->getOrInsertFunction("getPointerToNamedFunction", PointerType::get(Type::SByteTy), - PointerType::get(Type::SByteTy), 0); + PointerType::get(Type::SByteTy), (Type *)0); // Use the function we just added to get addresses of functions we need. for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) { ___ llvm-commits mailing list [EMAIL PROTECTED] http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits