<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Invalid floating type, unreachable between r300969 and r301029"
   href="https://bugs.llvm.org/show_bug.cgi?id=32740">32740</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Invalid floating type, unreachable between r300969 and r301029
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Scalar Optimizations
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andrew.b.adams@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18332" name="attach_18332" title="ll that reproduces">attachment 18332</a> <a href="attachment.cgi?id=18332&action=edit" title="ll that reproduces">[details]</a></span>
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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>