Displaying 1 result from an estimated 1 matches for "d3863f89".
2008 Nov 10
1
[LLVMdev] What would LLVM need to do this optimization?
I have a simple test .ll file that does something like..
int i = 0;
if (argc < 1) i++; else i = foo(i);
if (argc < 2) i++; else i = foo(i);
if (argc < 3) i++; else i = foo(i);
if (argc < 4) i++; else i = foo(i);
return i;
It gets optimized to just..
return 4;
opt -atomic-region-clone -mem2reg -predsimplify -simplifycfg -instcombine
.. where -atomic-region-clone is a pass I've