From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 84232] PHINode containing itself causes segfault in LLVM when
compiling Blender OpenCL kernel with R600 backend
Date: Thu, 09 Oct 2014 08:22:48 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0392952578=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 097FE6E2E4
for ; Thu, 9 Oct 2014 01:22:48 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dri-devel-bounces@lists.freedesktop.org
Sender: "dri-devel"
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0392952578==
Content-Type: multipart/alternative; boundary="1412842967.C0faeFf2.12579"; charset="UTF-8"
--1412842967.C0faeFf2.12579
Date: Thu, 9 Oct 2014 08:22:47 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=84232
--- Comment #6 from Vitaliy Filippov ---
Hm, I've tried to reproduce your testcase and got another bug:
int main()
{
int i;
for (i = 0; i < 100; i++)
{
if (!(i%10))
{
i = i%50;
if (i%2 == 0)
break;
}
}
return i;
}
clang-3.5 -S -emit-llvm test.c
llc-3.5 -march=r600 -mcpu=oland test.ll
>>>>
Program received signal SIGSEGV, Segmentation fault.
llvm::BasicBlock::getTerminator (this=0x471f08) at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/IR/BasicBlock.cpp:126
126 return dyn_cast(&InstList.back());
(gdb) bt
#0 llvm::BasicBlock::getTerminator (this=0x471f08) at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/IR/BasicBlock.cpp:126
#1 0x00007ffff7442c9a in (anonymous
namespace)::SIAnnotateControlFlow::handleLoopCondition
(this=this@entry=0x44c960, Cond=0x471eb0, Broken=Broken@entry=
0x486a50) at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/Target/R600/SIAnnotateControlFlow.cpp:271
#2 0x00007ffff7443d6c in handleLoop (Term=0x486af8, this=0x44c960)
at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/Target/R600/SIAnnotateControlFlow.cpp:288
#3 (anonymous namespace)::SIAnnotateControlFlow::runOnFunction (this=0x44c960,
F=...)
at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/Target/R600/SIAnnotateControlFlow.cpp:325
#4 0x00007ffff662a3d7 in llvm::FPPassManager::runOnFunction (this=0x43e930,
F=...)
at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/IR/LegacyPassManager.cpp:1545
#5 0x00007ffff662a45b in llvm::FPPassManager::runOnModule (this=0x43e930,
M=...)
at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/IR/LegacyPassManager.cpp:1565
#6 0x00007ffff662ce19 in runOnModule (M=..., this=0x431140) at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/IR/LegacyPassManager.cpp:1623
#7 llvm::legacy::PassManagerImpl::run (this=0x430e50, M=...) at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/IR/LegacyPassManager.cpp:1730
#8 0x0000000000411a11 in ?? ()
#9 0x000000000040cd98 in main ()
--
You are receiving this mail because:
You are the assignee for the bug.
--1412842967.C0faeFf2.12579
Date: Thu, 9 Oct 2014 08:22:47 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 6
on bug 84232
from Vitaliy Filippov
Hm, I've tried to reproduce your testcase and got another bug:
int main()
{
int i;
for (i = 0; i < 100; i++)
{
if (!(i%10))
{
i = i%50;
if (i%2 == 0)
break;
}
}
return i;
}
clang-3.5 -S -emit-llvm test.c
llc-3.5 -march=r600 -mcpu=oland test.ll
>>>>
Program received signal SIGSEGV, Segmentation fault.
llvm::BasicBlock::getTerminator (this=0x471f08) at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/IR/BasicBlock.cpp:126
126 return dyn_cast<TerminatorInst>(&InstList.back());
(gdb) bt
#0 llvm::BasicBlock::getTerminator (this=0x471f08) at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/IR/BasicBlock.cpp:126
#1 0x00007ffff7442c9a in (anonymous
namespace)::SIAnnotateControlFlow::handleLoopCondition
(this=this@entry=0x44c960, Cond=0x471eb0, Broken=Broken@entry=
0x486a50) at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/Target/R600/SIAnnotateControlFlow.cpp:271
#2 0x00007ffff7443d6c in handleLoop (Term=0x486af8, this=0x44c960)
at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/Target/R600/SIAnnotateControlFlow.cpp:288
#3 (anonymous namespace)::SIAnnotateControlFlow::runOnFunction (this=0x44c960,
F=...)
at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/Target/R600/SIAnnotateControlFlow.cpp:325
#4 0x00007ffff662a3d7 in llvm::FPPassManager::runOnFunction (this=0x43e930,
F=...)
at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/IR/LegacyPassManager.cpp:1545
#5 0x00007ffff662a45b in llvm::FPPassManager::runOnModule (this=0x43e930,
M=...)
at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/IR/LegacyPassManager.cpp:1565
#6 0x00007ffff662ce19 in runOnModule (M=..., this=0x431140) at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/IR/LegacyPassManager.cpp:1623
#7 llvm::legacy::PassManagerImpl::run (this=0x430e50, M=...) at
/var/home/vitali/setup/llvm/llvm-toolchain-3.5-3.5/lib/IR/LegacyPassManager.cpp:1730
#8 0x0000000000411a11 in ?? ()
#9 0x000000000040cd98 in main ()
You are receiving this mail because:
- You are the assignee for the bug.
--1412842967.C0faeFf2.12579--
--===============0392952578==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============0392952578==--