Displaying 2 results from an estimated 2 matches for "975f3c38".
2012 Feb 25
0
[LLVMdev] Missed optimization on array initialization
...emset to skip setting the dead element. That *is* something that we should be able to handle. Pete, didn't you implement this a while ago?
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120225/975f3c38/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);
}