Displaying 3 results from an estimated 3 matches for "pr3520".
2009 Mar 12
0
[LLVMdev] opt -O2/-O3 does not Initialize pass?
...> run opt with "-O1" or less, everything works fine. However, If I call
> opt with "-O2" or "-O3" then as soon as runOnFunction() is called, the
> pointer seems to be NULL. Here is a code that shows the problem:
That sounds like the same bug as llvm.org/PR3520 , which was fixed after
the 2.5 release. Can you confirm which version of LLVM you're seeing
this in, and if it is 2.5, could you update to SVN head and see whether
it still happens for you?
Nick
2009 Mar 12
1
[LLVMdev] opt -O2/-O3 does not Initialize pass?
...r less, everything works fine. However, If I
>> call
>> opt with "-O2" or "-O3" then as soon as runOnFunction() is called,
>> the
>> pointer seems to be NULL. Here is a code that shows the problem:
>
> That sounds like the same bug as llvm.org/PR3520 , which was fixed
> after
> the 2.5 release. Can you confirm which version of LLVM you're seeing
> this in, and if it is 2.5, could you update to SVN head and see
> whether
> it still happens for you?
>
> Nick
> _______________________________________________
> LL...
2009 Mar 11
3
[LLVMdev] opt -O2/-O3 does not Initialize pass?
Hello,
I'm writing a pass that adds a function prototype to the module during
doInitialization() and stores the pointer in a global variable. If I
run opt with "-O1" or less, everything works fine. However, If I call
opt with "-O2" or "-O3" then as soon as runOnFunction() is called, the
pointer seems to be NULL. Here is a code that shows the problem: