<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Assert in SLSR on Luxmark Hotel" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23975&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=yODCCTWvtzAxiNuA-J5YeDi2o0ANfigj1pAER4mgLVo&s=Wj3gr8BXhL6rmSN7H-doF28rUpxu2kxtg17LVHWrlPI&e=">23975</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assert in SLSR on Luxmark Hotel
</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>Matthew.Arsenault@amd.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, wujingyue@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14528" name="attach_14528" title="Function reduced testcase">attachment 14528</a> <a href="attachment.cgi?id=14528&action=edit" title="Function reduced testcase">[details]</a></span>
Function reduced testcase
Testcase is the function reduced IR, but I'm hitting multiple bugpoint bugs
when trying to reduce it further.
Run testcase with opt -S -separate-const-offset-from-gep -slsr -o -
luxmark_hotel_slsr_crash.ll
The SLSR pass crashes attempting to do an invalid RAUW.
It is atempting to replace a value of type %struct.Matrix4x4 addrspace(1)* with
a value of type float addrspace(1)*
opt: /home/matt/src/llvm/lib/IR/Value.cpp:358: void
llvm::Value::replaceAllUsesWith(llvm::Value*): Assertion `New->getType() ==
getType() && "replaceAllUses of value with new value of different type!"'
failed.
Program received signal SIGABRT, Aborted.
0x00007fffe739d528 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007fffe739d528 in raise () from /usr/lib/libc.so.6
#1 0x00007fffe739e93a in abort () from /usr/lib/libc.so.6
#2 0x00007fffe73963a7 in __assert_fail_base () from /usr/lib/libc.so.6
#3 0x00007fffe7396452 in __assert_fail () from /usr/lib/libc.so.6
#4 0x00007fffeb1ae2be in llvm::Value::replaceAllUsesWith (this=0x728c88,
New=0x763cf0) at /home/matt/src/llvm/lib/IR/Value.cpp:357
#5 0x00007fffe93d765c in (anonymous
namespace)::StraightLineStrengthReduce::rewriteCandidateWithBasis
(this=0x71fb70, C=..., Basis=...)
at
/home/matt/src/llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp:677
#6 0x00007fffe93d78dc in (anonymous
namespace)::StraightLineStrengthReduce::runOnFunction (this=0x71fb70, F=...) at
/home/matt/src/llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp:704
#7 0x00007fffeb15df61 in llvm::FPPassManager::runOnFunction (this=0x746540,
F=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1520
#8 0x00007fffeb15e0c0 in llvm::FPPassManager::runOnModule (this=0x746540,
M=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1540
#9 0x00007fffeb15e3ef in (anonymous namespace)::MPPassManager::runOnModule
(this=0x741050, M=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1596
#10 0x00007fffeb15ea50 in llvm::legacy::PassManagerImpl::run (this=0x740ca0,
M=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1698
#11 0x00007fffeb15ec55 in llvm::legacy::PassManager::run (this=0x7fffffffdb20,
M=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1729
#12 0x000000000048641d in main (argc=7, argv=0x7fffffffe038) at
/home/matt/src/llvm/tools/opt/opt.cpp:599</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>