[llvm-dev] stack dump at -early-cse-memssa twice

陳韋任 via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 23 04:02:23 PDT 2018


I think it's flaw in the PassManager or something like that. Nothing
should prevent you from running -early-cse-memssa twice.

2018-03-23 18:11 GMT+08:00 HwJ via llvm-dev <llvm-dev at lists.llvm.org>:
> Hello,
>
> while invoking opt with all possible optimization pairs I stumbled over
> a stack dump when doing -early-cse-memssa twice:
>
>    $ clang -Xclang -disable-O0-optnone -S -o fannkuch7.ll -emit-llvm
> fannkuch7.c
>
>         $ opt -S -o fannkuch7.ll -early-cse-memssa -early-cse-memssa
> fannkuch7.ll
>
> Questions:
> Is it illegal to call -early-cse-memssa twice?
> Are there any other incompatible optimization orders?
>
> Best,
> HwJ
>
> ---
>
> $ clang --version
>
>> clang version 6.0.0 (tags/RELEASE_600/final)
>> Target: x86_64-apple-darwin16.5.0
>> Thread model: posix
>> InstalledDir: /usr/local/bin
>
>
> Output:
>
>> 0  opt                      0x000000010d8980e7
>> llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
>> 1  opt                      0x000000010d8975ea
>> llvm::sys::RunSignalHandlers() + 83
>> 2  opt                      0x000000010d89850e
>> SignalHandler(int) + 239
>> 3  libsystem_platform.dylib 0x00007fff90902b3a _sigtramp + 26
>> 4  libsystem_platform.dylib 0x0000000000000001 _sigtramp +
>> 1869599969
>> 5  opt                      0x000000010d537ec0
>> llvm::PMDataManager::add(llvm::Pass*, bool) + 438
>> 6  opt                      0x000000010d53a044
>> llvm::FunctionPass::assignPassManager(llvm::PMStack&,
>> llvm::PassManagerType) + 344
>> 7  opt                      0x000000010d536919
>> llvm::PMTopLevelManager::schedulePass(llvm::Pass*) + 1243
>> 8  opt                      0x000000010c949058 main + 6509
>> 9  libdyld.dylib            0x00007fff906f3235 start + 1
>> 10 libdyld.dylib            0x0000000000000007 start +
>> 1871760851
>> Stack dump:
>> 0.  Program arguments: opt -S -o fannkuch7.ll
>> -early-cse-memssa -early-cse-memssa fannkuch7.ll
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>



-- 
Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj


More information about the llvm-dev mailing list