[RFC] The lli tool returns a timeout (original) (raw)
I’ve written my own CSE-like optimization, and what this optimization has accomplished so far is to remove some duplicate load and gep directives.
The problem I’m currently experiencing is that when I use the lli-14 -opaque-pointers directive to parse the .ll files I generate, the lli tool times out at the end when outputting the return value, which happens quite often in the case of the C source code listed below:
int main(){
…
while(cond)
{
…
while_body.
}
return 0;
}
That is, when removing some loads from the while structure or extracting loads from while outside the loop using licm, using the lli-14 tool will timeout.
I’m asking for advice, have you encountered a similar problem? What is the reason?
I have attached the C source code I used for testing and the .ll file before and after optimization.
my_test.c (1.6 KB)
my_test.c (1.6 KB)
my_test_out.ll.txt (27.5 KB)
std.in.txt (52.7 KB)
std.out.txt (8.8 KB)
my_test_origin.ll.txt (28.1 KB)