[LLVMdev] Can't add Merge Duplicate Global Constants pass
Eli Friedman
eli.friedman at gmail.com
Tue Sep 30 13:32:54 PDT 2008
On Tue, Sep 30, 2008 at 9:54 AM, Andrii Vasyliev
<andrii.vasyliev at gmail.com> wrote:
> Hi
>
> I have a program similar to kaleidoscope with same optimization passes.
> It works fine. But when I tried to add Constant Merge Pass with a line:
>
> OurFPM.add(createConstantMergePass());
>
> the program died with segmentation fault.
OurFPM is a FunctionPassManager, right? You can't stuff a
module-level pass into a FunctionPassManager. Try using a
PassManager.
-Eli
More information about the llvm-dev
mailing list