http://llvm.org/bugs/show_bug.cgi?id=7006
David Blaikie <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution| |FIXED --- Comment #2 from David Blaikie <[email protected]> 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 { entry: %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. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
