<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 - Pass modifies its input and doesn't report it: Interleaved Access Pass"
   href="https://bugs.llvm.org/show_bug.cgi?id=48208">48208</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Pass modifies its input and doesn't report it: Interleaved Access Pass
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>david.stenberg@ericsson.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=24175" name="attach_24175" title="IR reproducer.">attachment 24175</a> <a href="attachment.cgi?id=24175&action=edit" title="IR reproducer.">[details]</a></span>
IR reproducer.

LLVM commit: c5a6712f8cee1bfbb5d730531943558645853c0b

$ opt -S -interleaved-access -mtriple=x86_64 -debug interleaved-access.ll
[...]
  Replaced:   %1 = mul <8 x i16> %0, %0
    And   :   %5 = shufflevector <8 x i16> %1, <8 x i16> undef, <4 x i32> <i32
1, i32 3, i32 5, i32 7>
  With    :   %2 = shufflevector <8 x i16> %0, <8 x i16> undef, <4 x i32> <i32
1, i32 3, i32 5, i32 7>
    And   :   %3 = shufflevector <8 x i16> %0, <8 x i16> undef, <4 x i32> <i32
1, i32 3, i32 5, i32 7>
    And   :   %4 = mul <4 x i16> %2, %3
IA: Found an interleaved load:   %0 = load <8 x i16>, <8 x i16>* %p, align 1
Pass modifies its input and doesn't report it: Interleaved Access Pass
Pass modifies its input and doesn't report it
UNREACHABLE executed at ../lib/IR/LegacyPassManager.cpp:1525!
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:
0.      Program arguments: ./build-all-expensive/bin/opt -S -interleaved-access
/user/interleaved-access.ll -mtriple=x86_64 -debug 
1.      Running pass 'Function Pass Manager' on module
'/user/interleaved-access.ll'.
2.      Running pass 'Interleaved Access Pass' on function '@b'
 #0 0x0000000002892963 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(./build-all-expensive/bin/opt+0x2892963)
 #1 0x00000000028906de llvm::sys::RunSignalHandlers()
(./build-all-expensive/bin/opt+0x28906de)
 #2 0x0000000002892e1c SignalHandler(int)
(./build-all-expensive/bin/opt+0x2892e1c)
 #3 0x00007f06524c6630 __restore_rt (/lib64/libpthread.so.0+0xf630)
 #4 0x00007f06515d1387 raise (/lib64/libc.so.6+0x36387)
 #5 0x00007f06515d2a78 abort (/lib64/libc.so.6+0x37a78)
 #6 0x0000000002816bef (./build-all-expensive/bin/opt+0x2816bef)
 #7 0x00000000020bc7d8 (./build-all-expensive/bin/opt+0x20bc7d8)
 #8 0x00000000020c3298 llvm::FPPassManager::runOnModule(llvm::Module&)
(./build-all-expensive/bin/opt+0x20c3298)
 #9 0x00000000020bcbe0 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(./build-all-expensive/bin/opt+0x20bcbe0)
#10 0x000000000076db8b main (./build-all-expensive/bin/opt+0x76db8b)
#11 0x00007f06515bd555 __libc_start_main (/lib64/libc.so.6+0x22555)
#12 0x0000000000757765 _start (./build-all-expensive/bin/opt+0x757765)</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>