From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 84232] PHINode containing itself causes segfault in LLVM when compiling Blender OpenCL kernel with R600 backend
Date: Wed, 22 Oct 2014 23:07:00 +0000 [thread overview]
Message-ID: <bug-84232-502-DRozCyMRzQ@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-84232-502@http.bugs.freedesktop.org/>
[-- Attachment #1.1: Type: text/plain, Size: 861 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=84232
--- Comment #10 from Vitaliy Filippov <vitalif@yourcmc.ru> ---
I've managed to make a reduced test case with a recursive PHI after
StructurizeCFG !!!
int main()
{
int i, j = 0;
while (j % 2)
{
if (j > 100)
j += 3;
else if (j > 50)
break;
}
return j;
}
clang-3.5 -S -emit-llvm test3.c
opt-3.5 -S -structurizecfg test3.ll > test3cfg.ll
Simple to visualise with graphviz:
( echo 'digraph G {'; perl -ne 'if (/\%(\S+) = phi/) { my $a = $1; print "$a ->
$_;\n" for /\[ \%([^\s,]+)/g; }' test3cfg.ll; echo '}' ) > test3cfg.dot
dot -Tsvg test3cfg.dot > test3cfg.svg
%21 and %26 phi's loop in the result.
Also there is a branch on constant in the end of test3cfg.ll:
br i1 false, label %14, label %Flow2
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1768 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2014-10-22 23:07 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-23 9:19 [Bug 84232] New: PHINode containing itself causes segfault in LLVM when compiling Blender OpenCL kernel with R600 backend bugzilla-daemon
2014-09-23 9:19 ` [Bug 84232] " bugzilla-daemon
2014-09-23 13:19 ` bugzilla-daemon
2014-10-07 21:23 ` bugzilla-daemon
2014-10-07 21:45 ` bugzilla-daemon
2014-10-07 22:23 ` bugzilla-daemon
2014-10-08 20:56 ` bugzilla-daemon
2014-10-09 8:22 ` bugzilla-daemon
2014-10-10 15:48 ` bugzilla-daemon
2014-10-10 20:31 ` bugzilla-daemon
2014-10-10 21:36 ` bugzilla-daemon
2014-10-22 23:07 ` bugzilla-daemon [this message]
2014-10-22 23:08 ` bugzilla-daemon
2014-10-22 23:16 ` bugzilla-daemon
2014-10-23 9:12 ` bugzilla-daemon
2014-12-05 15:44 ` bugzilla-daemon
2014-12-08 16:57 ` bugzilla-daemon
2014-12-08 21:11 ` bugzilla-daemon
2017-03-22 16:00 ` bugzilla-daemon
2017-03-22 16:00 ` bugzilla-daemon
2018-04-03 3:49 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-84232-502-DRozCyMRzQ@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.