[llvm-bugs] [Bug 32740] New: Invalid floating type, unreachable between r300969 and r301029

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 21 17:11:22 PDT 2017


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

            Bug ID: 32740
           Summary: Invalid floating type, unreachable between r300969 and
                    r301029
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: andrew.b.adams at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18332
  --> https://bugs.llvm.org/attachment.cgi?id=18332&action=edit
ll that reproduces

Running opt -O2 on the attached .ll produces:

Invalid floating type
UNREACHABLE executed at
/usr/local/google/home/abadams/projects/llvm/trunk/include/llvm/IR/Type.h:175!
#0 0x0000000001b382da llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(../llvm/trunk/build-64-gcc-4.9/bin/opt+0x1b382da)
#1 0x0000000001b3643e llvm::sys::RunSignalHandlers()
(../llvm/trunk/build-64-gcc-4.9/bin/opt+0x1b3643e)
#2 0x0000000001b365a0 SignalHandler(int)
(../llvm/trunk/build-64-gcc-4.9/bin/opt+0x1b365a0)
#3 0x00007feadf742330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007feade4e5c37 gsignal
/build/eglibc-MjiXCM/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007feade4e9028 abort
/build/eglibc-MjiXCM/eglibc-2.19/stdlib/abort.c:91:0
#6 0x0000000001addc4a (../llvm/trunk/build-64-gcc-4.9/bin/opt+0x1addc4a)
#7 0x00000000017a69f8
llvm::InstCombiner::visitFAdd(llvm::BinaryOperator&)::{lambda(llvm::Type*,
llvm::Type*)#1}::operator()(llvm::Type*, llvm::Type*) const [clone .isra.214]
(../llvm/trunk/build-64-gcc-4.9/bin/opt+0x17a69f8)
#8 0x00000000017aa914 llvm::InstCombiner::visitFAdd(llvm::BinaryOperator&)
(../llvm/trunk/build-64-gcc-4.9/bin/opt+0x17aa914)
#9 0x00000000017a4f87 llvm::InstCombiner::run()
(../llvm/trunk/build-64-gcc-4.9/bin/opt+0x17a4f87)
#10 0x00000000017a5e0a combineInstructionsOverFunction(llvm::Function&,
llvm::InstCombineWorklist&, llvm::AAResults*, llvm::AssumptionCache&,
llvm::TargetLibraryInfo&, llvm::DominatorTree&, bool, llvm::LoopInfo*)
(../llvm/trunk/build-64-gcc-4.9/bin/opt+0x17a5e0a)
#11 0x00000000017a61d8
llvm::InstructionCombiningPass::runOnFunction(llvm::Function&)
(../llvm/trunk/build-64-gcc-4.9/bin/opt+0x17a61d8)
#12 0x000000000168cb73 llvm::FPPassManager::runOnFunction(llvm::Function&)
(../llvm/trunk/build-64-gcc-4.9/bin/opt+0x168cb73)
#13 0x000000000168cc1c llvm::FPPassManager::runOnModule(llvm::Module&)
(../llvm/trunk/build-64-gcc-4.9/bin/opt+0x168cc1c)
#14 0x000000000168d8ca llvm::legacy::PassManagerImpl::run(llvm::Module&)
(../llvm/trunk/build-64-gcc-4.9/bin/opt+0x168d8ca)
#15 0x00000000007c7743 main (../llvm/trunk/build-64-gcc-4.9/bin/opt+0x7c7743)
#16 0x00007feade4d0f45 __libc_start_main
/build/eglibc-MjiXCM/eglibc-2.19/csu/libc-start.c:321:0
#17 0x000000000081ade9 _start (../llvm/trunk/build-64-gcc-4.9/bin/opt+0x81ade9)
Stack dump:
0.      Program arguments: ../llvm/trunk/build-64-gcc-4.9/bin/opt -O2 out.ll
-print-after-all 
1.      Running pass 'Function Pass Manager' on module 'out.ll'.
2.      Running pass 'Combine redundant instructions' on function '@g'
Aborted (core dumped)


This happened sometime between 300969 and 301029

-- 
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/20170422/a9ddf756/attachment.html>


More information about the llvm-bugs mailing list