[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-bugs
Subject:    [LLVMbugs] [Bug 13242] New: malloc (not alloca) optimization issue
From:       bugzilla-daemon () llvm ! org
Date:       2012-06-29 19:51:28
Message-ID: bug-13242-206 () http ! llvm ! org/bugs/
[Download RAW message or body]

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

             Bug #: 13242
           Summary: malloc (not alloca) optimization issue
           Product: new-bugs
           Version: 3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs@nondot.org
        ReportedBy: jimjim211112@yahoo.com
                CC: llvmbugs@cs.uiuc.edu
    Classification: Unclassified


Created attachment 8796
  --> http://llvm.org/bugs/attachment.cgi?id=8796
C code running slow.

Hello fellow human beings.

Have attached some code. When compiling using clang with flags -O3 it produces
slow code.
If I change the malloc to alloca it produces fast (instant running time) code.
If commenting out one of the assignment in fac() function it is running fast
with malloc.

Using gcc instead of clang produces fast code with malloc.
Have I missed an optimization flag or is there something weird going on?

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic