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

            Bug ID: 44445
           Summary: [X86] Regcall calling convention mismanaged X87 fp
                    stack if long double is an input argument but is never
                    used
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

The regcall calling convention allows long double to be passed into a function
in ST0. The called function is responsible for removing this data from the x87
stack when it is done with it.

This works if the argument is used in the function since it appears in the
function livein list so the FP stackifier will see it and remove it when its
done with it.

But if the argument is never used, then its not in the livein list so the FP
stackifier doesn't see it and doesn't remove it.

-- 
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