[llvm-bugs] [Bug 42279] New: Regression since "Fix a bug w/inbounds invalidation in LFTR"

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 14 01:27:20 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42279

            Bug ID: 42279
           Summary: Regression since "Fix a bug w/inbounds invalidation in
                    LFTR"
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: martin at martin.st
                CC: listmail at philipreames.com, llvm-bugs at lists.llvm.org,
                    nikita.ppv at gmail.com

Created attachment 22099
  --> https://bugs.llvm.org/attachment.cgi?id=22099&action=edit
Crash reproduction sample

Since SVN r363289, "Fix a bug w/inbounds invalidation in LFTR", compilation
fails on one source file:

$ ./bin/clang++ -target x86_64-w64-mingw32 -c -O3 ebml-preproc.cpp 
[...]
Stack dump:
0.      Program arguments: /home/martin/code/llvm-bisect/build/bin/clang-9 -cc1
-triple x86_64-w64-windows-gnu -emit-obj -disable-free -main-file-name
ebml-preproc.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu
x86-64 -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer
-coverage-notes-file /home/martin/code/llvm-bisect/build/ebml-preproc.gcno
-resource-dir /home/martin/code/llvm-bisect/build/lib/clang/9.0.0
-internal-isystem /usr/x86_64-w64-mingw32/include/c++ -internal-isystem
/usr/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32 -internal-isystem
/usr/x86_64-w64-mingw32/include/c++/backward -internal-isystem
/usr/x86_64-w64-mingw32/include/c++/7.3-win32 -internal-isystem
/usr/x86_64-w64-mingw32/include/c++/7.3-win32/x86_64-w64-mingw32
-internal-isystem /usr/x86_64-w64-mingw32/include/c++/7.3-win32/backward
-internal-isystem /usr/include/c++/7.3-win32 -internal-isystem
/usr/include/c++/7.3-win32/x86_64-w64-mingw32 -internal-isystem
/usr/include/c++/7.3-win32/backward -internal-isystem
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/include/c++ -internal-isystem
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/include/c++/x86_64-w64-mingw32
-internal-isystem
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/include/c++/backward
-internal-isystem /home/martin/code/llvm-bisect/build/lib/clang/9.0.0/include
-internal-isystem /usr/x86_64-w64-mingw32/sys-root/mingw/include
-internal-isystem /usr/x86_64-w64-mingw32/include -internal-isystem
/usr/include -O3 -fdeprecated-macro -fdebug-compilation-dir
/home/martin/code/llvm-bisect/build -ferror-limit 19 -fmessage-length 0
-fno-use-cxa-atexit -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fseh-exceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-vectorize-slp -faddrsig -o ebml-preproc.o -x c++ ebml-preproc.cpp  
1.      <eof> parser at end of file 
2.      Per-module optimization passes 
3.      Running pass 'CallGraph Pass Manager' on module 'ebml-preproc.cpp'. 
4.      Running pass 'Loop Pass Manager' on function
'@_ZN7libebml18SafeReadIOCallback11GetUInt16BEEv' 
5.      Running pass 'Induction Variable Simplification' on basic block
'%for.body.i' 
 #0 0x0000559941450a4a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1ed5a4a) 
 #1 0x000055994144e6f4 llvm::sys::RunSignalHandlers()
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1ed36f4)
 #2 0x000055994144e832 SignalHandler(int)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1ed3832)
 #3 0x00007f36195d1890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
 #4 0x000055994124fc5e (anonymous
namespace)::IndVarSimplify::linearFunctionTestReplace(llvm::Loop*,
llvm::BasicBlock*, llvm::SCEV const*, llvm::PHINode*, llvm::SCEVExpander&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1cd4c5e)
 #5 0x0000559941259cff (anonymous namespace)::IndVarSimplify::run(llvm::Loop*)
(.part.484) (/home/martin/code/llvm-bisect/build/bin/clang-9+0x1cdecff)
 #6 0x000055994125ad34 (anonymous
namespace)::IndVarSimplifyLegacyPass::runOnLoop(llvm::Loop*,
llvm::LPPassManager&) (.part.485)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1cdfd34)
 #7 0x00005599408c439b llvm::LPPassManager::runOnFunction(llvm::Function&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x134939b)
 #8 0x0000559940f09d69 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x198ed69)
 #9 0x0000559942320853 (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x2da5853)
#10 0x0000559940f08fc1 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x198dfc1) 
#11 0x000055994165c6b0 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x20e16b0)
#12 0x0000559942081498
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x2b06498)
#13 0x00005599429d90e9 clang::ParseAST(clang::Sema&, bool, bool)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x345e0e9)
#14 0x0000559942080278 clang::CodeGenAction::ExecuteAction()
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x2b05278)
#15 0x0000559941b110ee clang::FrontendAction::Execute()
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x25960ee)
#16 0x0000559941ad2e76
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x2557e76)
#17 0x0000559941bb7d86
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x263cd86) 
#18 0x00005599401aa5b8 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/martin/code/llvm-bisect/build/bin/clang-9+0xc2f5b8)
#19 0x000055994013faa1 main
(/home/martin/code/llvm-bisect/build/bin/clang-9+0xbc4aa1)
#20 0x00007f3618265b97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#21 0x00005599401a637a _start
(/home/martin/code/llvm-bisect/build/bin/clang-9+0xc2b37a)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190614/84985845/attachment-0001.html>


More information about the llvm-bugs mailing list