<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 --- - [Polly] A compile time error of gsmatrix.c from the LNT test suite"
href="https://llvm.org/bugs/show_bug.cgi?id=26514">26514</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[Polly] A compile time error of gsmatrix.c from the LNT test suite
</td>
</tr>
<tr>
<th>Product</th>
<td>Polly
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>Optimizer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>polly-dev@googlegroups.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gareevroman@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, tobias@grosser.es
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=15852" name="attach_15852" title="A test case">attachment 15852</a> <a href="attachment.cgi?id=15852&action=edit" title="A test case">[details]</a></span>
A test case
This Bug is related to the following compile time error of gsmatrix.c from the
LNT test suite:
/home/roman/Documents/polly/build/llvm/bin/clang -DNOMEMOPT
-DGS_LIB_DEFAULT=\"/home/roman/llvm-test-suite/MultiSource/Benchmarks/MallocBench/gs:/home/roman/llvm-test-suite/MultiSource/Benchmarks/MallocBench/gs/fonts\"
-DNOPRIVATE
-I/tmp_home/compiled/llvm/SANDBOX/test-2016-02-05_18-47-34/MultiSource/Benchmarks/MallocBench/gs
-I/home/roman/llvm-test-suite/MultiSource/Benchmarks/MallocBench/gs
-I/home/roman/llvm-test-suite/include -I../../../../include -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -DNDEBUG -Wno-implicit-function-declaration -O3 -Xclang
-load -Xclang /tmp_home/compiled/llvm/lib/LLVMPolly.so -O3 -mllvm -polly -mllvm
-polly-process-unprofitable -m64 -fomit-frame-pointer -c
/home/roman/llvm-test-suite/MultiSource/Benchmarks/MallocBench/gs/gsmatrix.c -o
Output/gsmatrix.llvm.o
fatal error: error in backend: Cannot select: 0x4c71400: i64 = bitcast
0x4c9faf0
0x4c9faf0: f32,ch = load<LD4[%polly.access.pmat](align=8)> 0x4bc6030,
0x4c779f0, undef:i64
0x4c779f0: i64 = add 0x4c788d0, Constant:i64<32>
0x4c788d0: i64,ch = CopyFromReg 0x4bc6030, Register:i64 %vreg9
0x4c9c750: i64 = Register %vreg9
0x4c794b0: i64 = Constant<32>
0x4c9fc20: i64 = undef
In function: gs_point_transform
A corresponding test case, which can be found attached, produces the following
error, if we try to use opt with -polly-codegen
-polly-process-unprofitable=true.
/home/roman/Documents/polly/build/llvm/bin/bugpoint -safe-run-llc test_case.ll
-load /tmp_home/compiled/llvm/lib/LLVMPolly.so -polly-codegen
-polly-process-unprofitable=true
Invalid bitcast
%2 = bitcast float %polly.access.pmat.load to i64
LLVM ERROR: Broken function found, compilation aborted!</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>