Displaying 3 results from an estimated 3 matches for "90e8d62b".
2012 Feb 25
0
[LLVMdev] Missed optimization on array initialization
On Feb 25, 2012, at 3:17 AM, Carlo Alberto Ferraris wrote:
> Prompted by a SO post (http://stackoverflow.com/questions/9441882/compiler-instruction-reordering-optimizations-in-c-and-what-inhibits-them/9442363) I checked and found that LLVM yields the same (seemingly) suboptimal code as MSVC.
> Consider the following, simplified, C snippet:
> extern void bar(int*);
>
> void
2012 Feb 25
1
[LLVMdev] Missed optimization on array initialization
...____
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120225/90e8d62b/attachment.html>
2012 Feb 25
3
[LLVMdev] Missed optimization on array initialization
Prompted by a SO post
(http://stackoverflow.com/questions/9441882/compiler-instruction-reordering-optimizations-in-c-and-what-inhibits-them/9442363)
I checked and found that LLVM yields the same (seemingly) suboptimal
code as MSVC.
Consider the following, simplified, C snippet:
extern void bar(int*);
void foo(int a)
{
int ar[100] = {a};
if (a)
return;
bar(ar);
}