Created attachment 79901 [details] Kernel that causes the segfault I get a segmentation fault in LLVM with Tom Stellard's recent radeonsi compute patches (http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130520/175743.html) with the attached kernel. I can work around the issue when executing the if-block in the kernel unconditionally or with the attached patch to LLVM. Desc.OpInfo[0].RegClass equals -1 when the segmentation fault occurs.
Created attachment 79903 [details] [review] Patch to work around the issue
Created attachment 79904 [details] Full backtrace
This is working for me with the latest LLVM code. Please re-open if it is not working for you.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.