[llvm-commits] [llvm] r158529 - in /llvm/trunk: lib/Transforms/Scalar/ScalarReplAggregates.cpp test/Transforms/ScalarRepl/dynamic-vector-gep.ll

Peter Cooper peter_cooper at apple.com
Fri Jun 15 14:26:29 PDT 2012


Ah. Thanks for letting me know. I'll fix it today. 

I ran the nightly tests, including bullet, locally but I guess maybe the buildbot having a different configuration from my machine has exposed a bug.

Thanks
Pete

Sent from my iPhone

On Jun 15, 2012, at 1:33 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:

> 
> On Jun 15, 2012, at 11:07 AM, Pete Cooper <peter_cooper at apple.com> wrote:
> 
>> Author: pete
>> Date: Fri Jun 15 13:07:29 2012
>> New Revision: 158529
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=158529&view=rev
>> Log:
>> Allow SROA to split up an array of vectors into multiple vectors, even when the vectors are dynamically indexed
> 
> This is crashing in MultiSource/Benchmarks/Bullet:
> 
> lnt flags: --only-test MultiSource/Benchmarks/Bullet --arch i386 --cflag -g --optimize-option -Os
> 
> Assertion failed: (Ty && "Invalid GetElementPtrInst indices for type!"), function checkGEPType, file /Volumes/Data/g/llvm/include/llvm/Instructions.h, line 705.
> 0  clang             0x000000010e3ccdf2 PrintStackTrace(void*) + 34
> 1  clang             0x000000010e3cd304 SignalHandler(int) + 692
> 2  libsystem_c.dylib 0x00007fff99fe964a _sigtramp + 26
> 3  libsystem_c.dylib 0x00007fff9a071773 __swrite + 0
> 4  clang             0x000000010e3cd036 abort + 22
> 5  clang             0x000000010e3cd011 __assert_rtn + 81
> 6  clang             0x000000010e1448e7 llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::ArrayRef<llvm::Value*>, unsigned int, llvm::Twine const&, llvm::Instruction*) + 231
> 7  clang             0x000000010e0ab96b (anonymous namespace)::SROA::RewriteForScalarRepl(llvm::Instruction*, llvm::AllocaInst*, unsigned long long, llvm::SmallVector<llvm::AllocaInst*, 32u>&) + 1275
> 8  clang             0x000000010e0a83d5 (anonymous namespace)::SROA::runOnFunction(llvm::Function&) + 5013
> 9  clang             0x000000010e371b40 llvm::FPPassManager::runOnFunction(llvm::Function&) + 432
> 10 clang             0x000000010e16a48a (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) + 1754
> 11 clang             0x000000010e372036 llvm::MPPassManager::runOnModule(llvm::Module&) + 406
> 12 clang             0x000000010e3725f9 llvm::PassManagerImpl::run(llvm::Module&) + 409
> 13 clang             0x000000010e3727dd llvm::PassManager::run(llvm::Module&) + 13
> 14 clang             0x000000010cfd8b2a clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 4842
> 15 clang             0x000000010d0bd3ca clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 586
> 16 clang             0x000000010d0f27b4 clang::ParseAST(clang::Sema&, bool, bool) + 772
> 17 clang             0x000000010d0bc101 clang::CodeGenAction::ExecuteAction() + 465
> 18 clang             0x000000010ced01e8 clang::FrontendAction::Execute() + 104
> 19 clang             0x000000010cea7b8f clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 991
> 20 clang             0x000000010ce8f4f1 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3265
> 21 clang             0x000000010ce850da cc1_main(char const**, char const**, char const*, void*) + 730
> 22 clang             0x000000010ce8bf6c main + 3356
> 23 libdyld.dylib     0x00007fff8e52c7e1 start + 0
> 24 libdyld.dylib     0x0000000000000041 start + 18446603338128373856
> Stack dump:
> 0.    Program arguments: /Volumes/Data/b/Release+Asserts/bin/clang -cc1 -triple i386-apple-macosx10.8.0 -emit-obj -disable-free -main-file-name btDbvt.cpp -pic-level 2 -mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 132.10.1 -g -coverage-file Output/btDbvt.llvm.o -resource-dir /Volumes/Data/b/Release+Asserts/bin/../lib/clang/3.2 -D NO_TIME -D _GNU_SOURCE -D __STDC_LIMIT_MACROS -D NDEBUG -I /Volumes/Data/g/test-suite/MultiSource/Benchmarks/Bullet/include -I /Volumes/Data/b/sandbox/test-2012-06-15_20-28-18/MultiSource/Benchmarks/Bullet -I /Volumes/Data/g/test-suite/MultiSource/Benchmarks/Bullet -I /Volumes/Data/g/test-suite/include -I ../../..//include -fmodule-cache-path /var/folders/x9/rq71f341457f78v8q_jld6q40000gn/T/clang-module-cache -Os -fdeprecated-macro -fdebug-compilation-dir /Volumes/Data/b/sandbox/test-2012-06-15_20-28-18/MultiSource/Benchmarks/Bullet -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o Output/btDbvt.llvm.o -x c++ /Volumes/Data/g/test-suite/MultiSource/Benchmarks/Bullet/btDbvt.cpp 
> 1.    <eof> parser at end of file
> 2.    Per-module optimization passes
> 3.    Running pass 'CallGraph Pass Manager' on module '/Volumes/Data/g/test-suite/MultiSource/Benchmarks/Bullet/btDbvt.cpp'.
> 4.    Running pass 'Scalar Replacement of Aggregates (SSAUp)' on function '@_ZL5mergeRK12btDbvtAabbMmS1_'
> clang: error: unable to execute command: Illegal instruction: 4
> clang: error: clang frontend command failed due to signal (use -v to see invocation)
> clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120615/a49ef17e/attachment.html>


More information about the llvm-commits mailing list