[LLVMbugs] [Bug 1362] NEW: alignment on malloc instruction is not codegened correctly

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Apr 26 12:28:17 PDT 2007


http://llvm.org/bugs/show_bug.cgi?id=1362

           Summary: alignment on malloc instruction is not codegened
                    correctly
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: alenhar2 at uiuc.edu


the backends (including C and x86) do not respect alignment on malloc.  consider
test/Features/alignment.ll.  The final malloc (%T) should be codegened to a
memalign to preserve the alignment.

Once this is done, all memalign and posix_memalign calls can be safely
transformed into llvm malloc instructions.  Plus it is just broken right now.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list