[LLVMbugs] [Bug 23975] New: Assert in SLSR on Luxmark Hotel
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jun 27 11:02:47 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23975
Bug ID: 23975
Summary: Assert in SLSR on Luxmark Hotel
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: Matthew.Arsenault at amd.com
CC: llvmbugs at cs.uiuc.edu, wujingyue at gmail.com
Classification: Unclassified
Created attachment 14528
--> https://llvm.org/bugs/attachment.cgi?id=14528&action=edit
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
--
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/20150627/8cfcd8ea/attachment.html>
More information about the llvm-bugs
mailing list