[llvm-dev] GVN pass limitation.

xiuli pan via llvm-dev llvm-dev at lists.llvm.org
Tue Apr 19 02:08:42 PDT 2016


Hi Joerg,

This workaround seems work.

Thanks
Xiuli

-----Original Message-----
From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Joerg Sonnenberger via llvm-dev
Sent: Monday, April 18, 2016 6:08 PM
To: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] GVN pass limitation.

On Mon, Apr 18, 2016 at 05:17:04PM +0800, xiuli pan via llvm-dev wrote:
> So if there is another way to pass this memdep-block-scan-limit into 
> the pass manager or context? Or how could I set this 
> memdep-block-scan-limit right with libclang and libllvm?

Can't you call llvm::cl::ParseCommandLineOptions once at startup of your program? The internal flags are sticky, they are not a per-compilation property.

Joerg
_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list