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

            Bug ID: 46918
           Summary: MIR fails verifier when regalloc produces error:
                    inline assembly requires more registers than available
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Register Allocator
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

Created attachment 23793
  --> https://bugs.llvm.org/attachment.cgi?id=23793&action=edit
Testcase

The register allocator currently produces MIR that fails the verifier when it
can't handle inline assembly. It produces the user error in the context, and
then has to produce something and keep going. The MIR should pass the verifier
so the compilation can reach the end successfully. I'm not sure whether it
would be better to hack up the code to avoid failing the verifier, or to change
the verifier check for the error and disable the liveness checks.

llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-machineinstrs

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to