[LLVMbugs] [Bug 7006] Missed struct allocation escape analysis

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 31 08:09:38 PDT 2011


David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |dblaikie at gmail.com
         Resolution|                            |FIXED

--- Comment #2 from David Blaikie <dblaikie at gmail.com> 2011-10-31 10:09:38 CDT ---
I believe this has been fixed some time since the bug was filed. (I can take
the time to find a particular revision if necessary)

With or without WITH_Y defined, 'clang malloc.c -S -o - -Os -emit-llvm | opt
-O3 -S' produces the following main:

define i32 @main() nounwind uwtable optsize {
  %call.i = tail call i64 @strtol(i8* nocapture getelementptr inbounds ([3 x
i8]* @.str, i64 0, i64 0), i8** null, i32 10) nounwind optsize
  %conv.i = trunc i64 %call.i to i32
  %mul2.i = mul nsw i32 %conv.i, 3
  %conv.i4 = sitofp i32 %mul2.i to double
  %call2 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x
i8]* @.str1, i64 0, i64 0), double %conv.i4) nounwind optsize
  ret i32 0

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.

More information about the llvm-bugs mailing list