[llvm-bugs] [Bug 40971] New: [Coverage] Assertion when using _Pragma("unroll()")

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 5 17:44:44 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40971

            Bug ID: 40971
           Summary: [Coverage] Assertion when using _Pragma("unroll()")
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Wolfgang_Pieb at playstation.sony.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

// Given the following source:

typedef float float4 __attribute__((ext_vector_type(4)));
typedef float4 float4Matrix[3][3];

void foo()
{
  float4Matrix K;
  for (int i=0; i<3; i++)
    _Pragma("unroll(3)")
    for (int j=0; j<=i; j++) K[i][j]=0;
}
// End of source

when compiled with 
clang -cc1 -emit-obj -target-cpu btver2 -fprofile-instrument=clang
-fcoverage-mapping <file>

gets the following compile time error:
fatal error: error in backend: File exit not handled before popRegions

When the _Pragma() is removed the compilation succeeds.

This appears to have been introduced by r229748. Note that to reproduce with
that version you have to substitute '-fprofile-instrument=clang' with
'-fprofile-instr-generate'.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190306/150d4159/attachment.html>


More information about the llvm-bugs mailing list