All of lore.kernel.org
 help / color / mirror / Atom feed
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: Tue, 07 Oct 2014 21:23:24 +0000	[thread overview]
Message-ID: <bug-84232-502-RFUBosrCFK@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-84232-502@http.bugs.freedesktop.org/>


[-- Attachment #1.1: Type: text/plain, Size: 1146 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=84232

--- Comment #2 from Vitaliy Filippov <vitalif@yourcmc.ru> ---
Created attachment 107527
  --> https://bugs.freedesktop.org/attachment.cgi?id=107527&action=edit
Attempt to reduce testcase using bugpoint

Tried to reduce the case using bugpoint:

PATH=/usr/lib/llvm-3.5/bin/:$PATH bugpoint-3.5 kernel.ll --llc-safe --tool-args
-- -march=r600 -mcpu=oland

The result leads to other crash, maybe it's also a bug, but it's definitely
another bug:

llc-3.5 -march=r600 -mcpu=oland bugpoint-reduced-simplified.ll

Which leads to a segfault on a non-assert build and to the following message on
a release+asserts build:

Unhandled loop condition!
UNREACHABLE executed at
/var/home/vitali/setup/llvm-toolchain-3.5-3.5/lib/Target/R600/SIAnnotateControlFlow.cpp:259!

This is probably related to bugpoint replacing the branch conditions with
constants, which makes conditional branches effectively unconditional :) and
SIAnnotateControlFlow::handleLoopCondition also doesn't handle this case.

Looks like an easy to fix problem?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2199 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

  parent reply	other threads:[~2014-10-07 21:23 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 [this message]
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
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-RFUBosrCFK@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.