Bug 65085

Summary: [radeonsi LLVM] Segfault during OpenCL kernel compilation
Product: Mesa Reporter: Niels Ole Salscheider <niels_ole>
Component: Drivers/Gallium/radeonsiAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Kernel that causes the segfault
Patch to work around the issue
Full backtrace

Description Niels Ole Salscheider 2013-05-28 15:43:05 UTC
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.
Comment 1 Niels Ole Salscheider 2013-05-28 15:43:39 UTC
Created attachment 79903 [details] [review]
Patch to work around the issue
Comment 2 Niels Ole Salscheider 2013-05-28 15:44:07 UTC
Created attachment 79904 [details]
Full backtrace
Comment 3 Tom Stellard 2013-11-16 02:26:42 UTC
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.